mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Stub out comments writer when needed
This commit is contained in:
committed by
Santiago Pastorino
parent
ceded40aa1
commit
e2b7bba626
2
test/fixtures/poro.rb
vendored
2
test/fixtures/poro.rb
vendored
@@ -26,8 +26,6 @@ class Profile < Model
|
||||
end
|
||||
|
||||
class Post < Model
|
||||
attr_writer :comments
|
||||
|
||||
def comments
|
||||
@comments ||= [Comment.new(content: 'C1'),
|
||||
Comment.new(content: 'C2')]
|
||||
|
||||
Reference in New Issue
Block a user