Stub out comments writer when needed

This commit is contained in:
Adrian Mugnolo and Santiago Pastorino
2013-12-16 17:10:13 -02:00
committed by Santiago Pastorino
parent ceded40aa1
commit e2b7bba626
2 changed files with 4 additions and 2 deletions

View File

@@ -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')]