aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-07-02 14:51:15 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-07-02 14:51:15 -0700
commit4236d8f05631ab75b74850546d0253d41d4d48df (patch)
tree38d3c9b6200788e93584002c7e0a8d41a2d4a9ad /activerecord
parent17af1ab3beb36de6d3e260017c6f9926c7050429 (diff)
downloadrails-4236d8f05631ab75b74850546d0253d41d4d48df.tar.gz
rails-4236d8f05631ab75b74850546d0253d41d4d48df.tar.bz2
rails-4236d8f05631ab75b74850546d0253d41d4d48df.zip
we don't need to use active support *everwhere* common.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb
index 0a869f9685..00237d7caf 100644
--- a/activerecord/lib/active_record/attribute_methods.rb
+++ b/activerecord/lib/active_record/attribute_methods.rb
@@ -187,7 +187,7 @@ module ActiveRecord
# For queries selecting a subset of columns, return false for unselected columns.
# We check defined?(@attributes) not to issue warnings if called on objects that
# have been allocated but not yet initialized.
- if defined?(@attributes) && @attributes.present? && self.class.column_names.include?(name)
+ if defined?(@attributes) && @attributes.any? && self.class.column_names.include?(name)
return has_attribute?(name)
end