Permalink
Browse files

Remove instance level serialized_attributes setting was deprecated.

  • Loading branch information...
1 parent 0a88c10 commit 6c74825beb548d897ba5c3ec32e65d6036a19cc9 @kennyj kennyj committed Jun 2, 2013
@@ -50,13 +50,6 @@ def serialize(attr_name, class_name = Object)
end
end
- # *DEPRECATED*: Use ActiveRecord::AttributeMethods::Serialization::ClassMethods#serialized_attributes class level method instead.
- def serialized_attributes
- message = "Instance level serialized_attributes method is deprecated, please use class level method."
- ActiveSupport::Deprecation.warn message
- defined?(@serialized_attributes) ? @serialized_attributes : self.class.serialized_attributes
- end
-
class Type # :nodoc:
def initialize(column)
@column = column
@@ -19,12 +19,6 @@ def test_list_of_serialized_attributes
assert_equal %w(content), Topic.serialized_attributes.keys
end
- def test_serialized_attributes_are_class_level_settings
- topic = Topic.new
- assert_raise(NoMethodError) { topic.serialized_attributes = [] }
- assert_deprecated { topic.serialized_attributes }
- end
-
def test_serialized_attribute
Topic.serialize("content", MyObject)

0 comments on commit 6c74825

Please sign in to comment.