./README in ambition-0.1.3 vs ./README in ambition-0.1.4
- old
+ new
@@ -176,15 +176,23 @@
>> User.select { |m| m.name == 'jon' }.size
=> 21
== Other Enumerables
- These methods perform COUNT() operations rather than loading your array into memory. They're all
- kickers.
+These methods perform COUNT() operations rather than loading your array into memory. They're all
+kickers.
User.any? { |m| m.name == 'jon' }
User.all? { |m| m.name == 'jon' }
User.select { |m| m.name == 'jon' }.empty?
+
+== More Sugar
+
+The +downcase+ and +upcase+ methods will map to LOWER() and UPPER(), respectively.
+
+ >> User.select { |m| m.name.downcase =~ 'jon%' }.to_sql
+ => "SELECT * FROM users WHERE LOWER(users.`name`) LIKE 'jon%'"
+
== SELECT * FROM bugs
Found a bug? Sweet. Add it at the Lighthouse: http://err.lighthouseapp.com/projects/466-plugins/tickets/new