diff options
author | prasath <prasath@dhcppc1.(none)> | 2012-01-25 01:34:04 +0530 |
---|---|---|
committer | prasath <prasath@dhcppc1.(none)> | 2012-01-25 01:34:04 +0530 |
commit | bf31d7b224314ec6e2edd04db3de2476439a0ed1 (patch) | |
tree | d0d6e92859f39d3cb3f1d2eb0ec0a9c2e0b324ea /activemodel/test | |
parent | 423b2626d85f75bb5fec03909ff8963bded7c7d5 (diff) | |
download | rails-bf31d7b224314ec6e2edd04db3de2476439a0ed1.tar.gz rails-bf31d7b224314ec6e2edd04db3de2476439a0ed1.tar.bz2 rails-bf31d7b224314ec6e2edd04db3de2476439a0ed1.zip |
Removing unwanted method and adding to accessor for getter history
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/validations/callbacks_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activemodel/test/cases/validations/callbacks_test.rb b/activemodel/test/cases/validations/callbacks_test.rb index 1cf09758f9..e4f602bd80 100644 --- a/activemodel/test/cases/validations/callbacks_test.rb +++ b/activemodel/test/cases/validations/callbacks_test.rb @@ -5,11 +5,10 @@ class Dog include ActiveModel::Validations include ActiveModel::Validations::Callbacks - attr_accessor :name - attr_writer :history + attr_accessor :name, :history - def history - @history ||= [] + def initialize + @history = [] end end |