mirror of
https://github.com/github/rails.git
synced 2026-01-10 23:27:56 -05:00
Avoid method redefined warning
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
0576ec4ddd
commit
6ea967729f
@@ -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 ||= []
|
||||
|
||||
Reference in New Issue
Block a user