Skip to content

Commit

Permalink
we don't need to use active support *everwhere* common.
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 2, 2013
1 parent 17af1ab commit 4236d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/attribute_methods.rb
Expand Up @@ -187,7 +187,7 @@ def respond_to?(name, include_private = false)
# For queries selecting a subset of columns, return false for unselected columns. # 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 # We check defined?(@attributes) not to issue warnings if called on objects that
# have been allocated but not yet initialized. # 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) return has_attribute?(name)
end end


Expand Down

0 comments on commit 4236d8f

Please sign in to comment.