Permalink
Browse files

Avoid method redefined warning

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
spastorino authored and josevalim committed Jun 22, 2010
1 parent 0576ec4 commit 6ea967729fef4e3155fb7a50813b503a0bfdc07f
Showing with 2 additions and 1 deletion.
  1. +2 −1 activemodel/test/cases/validations/callbacks_test.rb
@@ -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 ||= []

0 comments on commit 6ea9677

Please sign in to comment.