1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Removing unwanted method and adding to accessor for getter history

This commit is contained in:
prasath 2012-01-25 01:34:04 +05:30
parent 423b2626d8
commit bf31d7b224

View file

@ -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