Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes warning in the AR test suite

  • Loading branch information...
commit 288b56f550fb239352537b93f737cfd4b68ddb0f 1 parent faa2c71
@fxn fxn authored
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
@@ -172,7 +172,7 @@ def respond_to?(name, include_private = false)
# If the result is true then check for the select case.
# For queries selecting a subset of columns, return false for unselected columns.
- if @attributes.present? && self.class.column_names.include?(name)
+ if defined?(@attributes) && @attributes.present? && self.class.column_names.include?(name)
return has_attribute?(name)
end
Please sign in to comment.
Something went wrong with that request. Please try again.