diff options
author | AvnerCohen <israbirding@gmail.com> | 2012-11-10 17:16:21 +0200 |
---|---|---|
committer | AvnerCohen <israbirding@gmail.com> | 2012-11-10 17:16:21 +0200 |
commit | 890da5149df19c54124929ff8b533014b6b46e69 (patch) | |
tree | 6a7f19b90ab939482e94b5af5a32d76057a2e708 /activerecord/lib/active_record/relation/finder_methods.rb | |
parent | dcf401e3bc7163aefab856abe7f1d238025c4ef9 (diff) | |
download | rails-890da5149df19c54124929ff8b533014b6b46e69.tar.gz rails-890da5149df19c54124929ff8b533014b6b46e69.tar.bz2 rails-890da5149df19c54124929ff8b533014b6b46e69.zip |
1.9 Syntax related changes
Diffstat (limited to 'activerecord/lib/active_record/relation/finder_methods.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 99c2f45bc8..d8131680a3 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -78,7 +78,7 @@ module ActiveRecord # # Person.first # returns the first object fetched by SELECT * FROM people # Person.where(["user_name = ?", user_name]).first - # Person.where(["user_name = :u", { :u => user_name }]).first + # Person.where(["user_name = :u", { u: user_name }]).first # Person.order("created_on DESC").offset(5).first # Person.first(3) # returns the first three objects fetched by SELECT * FROM people LIMIT 3 def first(limit = nil) |