We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 606e2ae + 839d1ab commit e9a15a3Copy full SHA for e9a15a3
test/serializers/associations_test.rb
@@ -3,26 +3,6 @@
3
module ActiveModel
4
class Serializer
5
class AssociationsTest < Minitest::Test
6
- class Model
7
- def initialize(hash = {})
8
- @attributes = hash
9
- end
10
-
11
- def read_attribute_for_serialization(name)
12
- @attributes[name]
13
14
15
- def method_missing(meth, *args)
16
- if meth.to_s =~ /^(.*)=$/
17
- @attributes[$1.to_sym] = args[0]
18
- elsif @attributes.key?(meth)
19
- @attributes[meth]
20
- else
21
- super
22
23
24
25
26
def setup
27
@author = Author.new(name: 'Steve K.')
28
@author.bio = nil
0 commit comments