./README in ambition-0.1.1 vs ./README in ambition-0.1.2
- old
+ new
@@ -156,10 +156,14 @@
"SELECT * FROM users WHERE users.`name` = 'jon' ORDER BY users.name DESC, users.age DESC"
User.select { |m| m.name == 'jon' }.sort_by { |m| -m.age }
"SELECT * FROM users WHERE users.`name` = 'jon' ORDER BY users.age DESC"
+ User.select { |m| m.name == 'jon' }.sort_by { |m| -m.profiles.title }
+ "SELECT users.`id` AS t0_r0, ... FROM users LEFT OUTER JOIN profiles ON profiles.user_id = users.id
+ WHERE (users.`name` = 'jon') ORDER BY profiles.title DESC"
+
User.select { |m| m.name == 'jon' }.sort_by { rand }
"SELECT * FROM users WHERE users.`name` = 'jon' ORDER BY RAND()"
== COUNT -- select { |u| u.name == 'jon' }.size
@@ -173,6 +177,6 @@
Found a bug? Sweet. Add it at the Lighthouse: http://err.lighthouseapp.com/projects/466-plugins/tickets/new
Feature requests are welcome.
-* Chris Wanstrath [ chris@ozmm.org ]
\ No newline at end of file
+* Chris Wanstrath [ chris@ozmm.org ]