mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Avoid method redefined warning
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
0576ec4ddd
commit
6ea967729f
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ class Dog
|
|||
include ActiveModel::Validations
|
||||
include ActiveModel::Validations::Callbacks
|
||||
|
||||
attr_accessor :name, :history
|
||||
attr_accessor :name
|
||||
attr_writer :history
|
||||
|
||||
def history
|
||||
@history ||= []
|
||||
|
|
Loading…
Reference in a new issue