Skip to content

Commit e9a15a3

Browse files
committed
Merge pull request #1187 from bf4/remove_dead_code
Remove dead code
2 parents 606e2ae + 839d1ab commit e9a15a3

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

test/serializers/associations_test.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,6 @@
33
module ActiveModel
44
class Serializer
55
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-
end
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-
end
23-
end
24-
end
25-
266
def setup
277
@author = Author.new(name: 'Steve K.')
288
@author.bio = nil

0 commit comments

Comments
 (0)