Slide 1

Slide 1 text

Your Guide to Presentation Popularity!

Slide 2

Slide 2 text

Your Guide to Presentation Notoriety!

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

•Provocative Title •Risqué Photos •Ruby Code?

Slide 5

Slide 5 text

Provocative Title:

Slide 6

Slide 6 text

Use Ruby 1.9 like an Engineer

Slide 7

Slide 7 text

Use Ruby 1.9 like a SEXY Engineer

Slide 8

Slide 8 text

Risqué Photos

Slide 9

Slide 9 text

America's Next Top Model

Slide 10

Slide 10 text

America's Next Top Engineer

Slide 11

Slide 11 text

Confident

Slide 12

Slide 12 text

Elegant

Slide 13

Slide 13 text

Sultry

Slide 14

Slide 14 text

Sexy

Slide 15

Slide 15 text

Thoughtful

Slide 16

Slide 16 text

Fierce

Slide 17

Slide 17 text

Playful

Slide 18

Slide 18 text

Powerful

Slide 19

Slide 19 text

Provocative

Slide 20

Slide 20 text

Ruby Code?

Slide 21

Slide 21 text

protected def 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_names super 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) end else super end end private def references_eager_loaded_tables? # always convert table names to downcase as in Oracle quoted table names are in uppercase joined_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

Slide 22

Slide 22 text

TL;DR