aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/serializable/json_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/cases/serializable/json_test.rb')
-rw-r--r--activemodel/test/cases/serializable/json_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activemodel/test/cases/serializable/json_test.rb b/activemodel/test/cases/serializable/json_test.rb
index ad5b04091e..e5364d9858 100644
--- a/activemodel/test/cases/serializable/json_test.rb
+++ b/activemodel/test/cases/serializable/json_test.rb
@@ -14,9 +14,11 @@ class Contact
end
end
+ remove_method :attributes if method_defined?(:attributes)
+
def attributes
instance_values
- end unless method_defined?(:attributes)
+ end
end
class JsonSerializationTest < ActiveModel::TestCase