Skip to content
Browse files

Avoid method redefined warning

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 0576ec4 commit 6ea967729fef4e3155fb7a50813b503a0bfdc07f @spastorino spastorino committed with josevalim
Showing with 2 additions and 1 deletion.
  1. +2 −1 activemodel/test/cases/validations/callbacks_test.rb
View
3 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.
Something went wrong with that request. Please try again.