1
0
Fork 0
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:
Santiago Pastorino 2010-06-22 08:13:58 -03:00 committed by José Valim
parent 0576ec4ddd
commit 6ea967729f

View file

@ -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 ||= []