aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-06-22 08:13:58 -0300
committerJosé Valim <jose.valim@gmail.com>2010-06-22 15:09:01 +0200
commit6ea967729fef4e3155fb7a50813b503a0bfdc07f (patch)
tree0650427d4b523e103e02847600577527a984c9dc /activemodel
parent0576ec4ddd5f806c6ae98184d28391fc239db1ef (diff)
downloadrails-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.rb3
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 ||= []