1
0
Fork 0
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:
Vijay Dev 2011-11-05 08:44:16 -07:00
commit 6aaae3de27

View file

@ -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