提交 2014d914 编写于 作者: M miloops 提交者: Michael Koziarski

Make new_record? an alias of new? in ActiveResource to fix problem with route generation in forms.

Signed-off-by: NMichael Koziarski <michael@koziarski.com>
上级 bf024b6a
......@@ -704,6 +704,7 @@ def clone
def new?
id.nil?
end
alias :new_record? :new?
# Gets the <tt>\id</tt> attribute of the resource.
def id
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册