diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-06-22 08:13:58 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-22 15:09:01 +0200 |
commit | 6ea967729fef4e3155fb7a50813b503a0bfdc07f (patch) | |
tree | 0650427d4b523e103e02847600577527a984c9dc /activemodel | |
parent | 0576ec4ddd5f806c6ae98184d28391fc239db1ef (diff) | |
download | rails-6ea967729fef4e3155fb7a50813b503a0bfdc07f.tar.gz rails-6ea967729fef4e3155fb7a50813b503a0bfdc07f.tar.bz2 rails-6ea967729fef4e3155fb7a50813b503a0bfdc07f.zip |
Avoid method redefined warning
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/test/cases/validations/callbacks_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activemodel/test/cases/validations/callbacks_test.rb b/activemodel/test/cases/validations/callbacks_test.rb index 67b21eb106..1cf09758f9 100644 --- a/activemodel/test/cases/validations/callbacks_test.rb +++ b/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 ||= [] |