Permalink
Browse files

Remove old :limit removal code from find_initial, logic is now handle…

…d in the preloading and eager loading code.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
1 parent f3fd44f commit 361aaa04ef2f33cb1fe49497c73bc13e6b72addc Aliaksey Kandratsenka committed with NZKoz Jan 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
View
2 activerecord/lib/active_record/base.rb
@@ -1272,7 +1272,7 @@ def respond_to?(method_id, include_private = false)
private
def find_initial(options)
- options.update(:limit => 1) unless options[:include]
+ options.update(:limit => 1)
find_every(options).first
end

1 comment on commit 361aaa0

@josh
Ruby on Rails member

Finally someone is getting around to cleaning up useless AR options!

Please sign in to comment.