Presentation popularity at RedDot RubyConf
Your Guide toPresentationPopularity!
View Slide
Your Guide toPresentationNotoriety!
•Provocative Title•Risqué Photos•Ruby Code?
Provocative Title:
Use Ruby 1.9 like anEngineer
Use Ruby 1.9 like aSEXY Engineer
Risqué Photos
America's Next TopModel
America's Next TopEngineer
Confident
Elegant
Sultry
Sexy
Thoughtful
Fierce
Playful
Powerful
Provocative
Ruby Code?
protecteddef method_missing(method, *args, &block)if Array.method_defined?(method)to_a.send(method, *args, &block)elsif @klass.scopes[method]merge(@klass.send(method, *args, &block))elsif @klass.respond_to?(method)scoping { @klass.send(method, *args, &block) }elsif arel.respond_to?(method)arel.send(method, *args, &block)elsif match = DynamicFinderMatch.match(method)attributes = match.attribute_namessuper unless @klass.send(:all_attributes_exists?, attributes)if match.finder?find_by_attributes(match, attributes, *args)elsif match.instantiator?find_or_instantiator_by_attributes(match, attributes, *args, &block)endelsesuperendendprivatedef references_eager_loaded_tables?# always convert table names to downcase as in Oracle quoted table names are in uppercasejoined_tables = (tables_in_string(arel.joins(arel)) + [table.name, table.table_alias]).compact.map{ |t|t.downcase }.uniq(tables_in_string(to_sql) - joined_tables).any?end
TL;DR