提交 bf31d7b2 编写于 作者: P prasath

Removing unwanted method and adding to accessor for getter history

上级 423b2626
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册