mirror of
https://github.com/github/rails.git
synced 2026-01-10 23:27:56 -05:00
Remove warnings by calling remove_method
This commit is contained in:
@@ -9,6 +9,7 @@ class Contact
|
||||
|
||||
attr_accessor :address, :friends
|
||||
|
||||
remove_method :attributes
|
||||
def attributes
|
||||
instance_values.except("address", "friends")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user