mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #2378 from cesario/remove_warnings_activemodel
Remove warnings by calling remove_method
This commit is contained in:
commit
6aaae3de27
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ class Contact
|
||||||
|
|
||||||
attr_accessor :address, :friends
|
attr_accessor :address, :friends
|
||||||
|
|
||||||
|
remove_method :attributes
|
||||||
def attributes
|
def attributes
|
||||||
instance_values.except("address", "friends")
|
instance_values.except("address", "friends")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue