mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix failing test.
This commit is contained in:
@@ -932,7 +932,7 @@ module ActiveRecord #:nodoc:
|
||||
end
|
||||
|
||||
def attribute_method?(attribute)
|
||||
super || column_names.include?(attribute.to_s.sub(/=$/, ''))
|
||||
super || (table_exists? && column_names.include?(attribute.to_s.sub(/=$/, '')))
|
||||
end
|
||||
|
||||
# Set the lookup ancestors for ActiveModel.
|
||||
|
||||
Reference in New Issue
Block a user