Browse files

we don't need to use active support *everwhere* common.

  • Loading branch information...
1 parent 17af1ab commit 4236d8f05631ab75b74850546d0253d41d4d48df @tenderlove tenderlove committed Jul 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/attribute_methods.rb
View
2 activerecord/lib/active_record/attribute_methods.rb
@@ -187,7 +187,7 @@ def respond_to?(name, include_private = false)
# 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

0 comments on commit 4236d8f

Please sign in to comment.