提交 c421870c 编写于 作者: A Aaron Patterson

Merge pull request #4644 from ask4prasath/refactor_test

Replaced unwanted method and added to accessor for getter history
......@@ -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.
先完成此消息的编辑!
想要评论请 注册