mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Tests shouldn't produce warnings
This commit is contained in:
@@ -5,6 +5,11 @@ class Post
|
||||
extend ActiveModel::Naming
|
||||
include ActiveModel::Conversion
|
||||
attr_writer :id, :body
|
||||
def initialize
|
||||
@id = nil
|
||||
@body = nil
|
||||
super
|
||||
end
|
||||
def id
|
||||
@id || 45
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user