Permalink
Browse files

Make new_record? an alias of new? in ActiveResource to fix problem wi…

…th route generation in forms.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
1 parent bf024b6 commit 2014d9141aaa8e40a030875de35570b1061b7c2f @miloops miloops committed with NZKoz Dec 2, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 activeresource/lib/active_resource/base.rb
@@ -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

0 comments on commit 2014d91

Please sign in to comment.