Permalink
Browse files

Removing unwanted method and adding to accessor for getter history

  • Loading branch information...
1 parent 423b262 commit bf31d7b224314ec6e2edd04db3de2476439a0ed1 prasath committed Jan 24, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 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

0 comments on commit bf31d7b

Please sign in to comment.