Permalink
Browse files

Forgot to have the form delegate to the model....

  • Loading branch information...
1 parent 0176137 commit 3823e0c5a8c1a7ff32d73cceef963d679e847686 @elight elight committed Dec 2, 2012
Showing with 9 additions and 1 deletion.
  1. +8 −0 lib/redtape.rb
  2. +1 −1 lib/redtape/version.rb
View
@@ -65,6 +65,14 @@ def save
end
end
+ def method_missing(*args, &block)
+ if @factory.model
+ @factory.model.send(*args, &block)
+ else
+ super
+ end
+ end
+
private
def factory_args_for(controller, args)
@@ -1,3 +1,3 @@
module Redtape
- VERSION = "1.0.1"
+ VERSION = "1.0.2"
end

0 comments on commit 3823e0c

Please sign in to comment.