diff options
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 400f0ceb81..b3d4400138 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -330,7 +330,7 @@ module ActiveRecord #:nodoc: # Example: # Person.exists?(5) def exists?(id) - !find_first("#{primary_key} = #{sanitize(id)}").nil? + !find_first("#{primary_key} = #{sanitize(id)}").nil? rescue false end # This method is deprecated in favor of find with the :conditions option. |