Browse files

Should respond to persisted? as well

  • Loading branch information...
1 parent cb29ca2 commit c8669a9ebf34abc6e563264bd8fbf069d2f919ec @josevalim josevalim committed May 26, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/mail_form/shim.rb
View
4 lib/mail_form/shim.rb
@@ -43,6 +43,10 @@ def new_record?
true
end
+ def persisted?
+ false
+ end
+
# Always return nil so when using form_for, the default method will be post.
def id
nil

0 comments on commit c8669a9

Please sign in to comment.