Skip to content

Commit

Permalink
method_missing patch from setsail/jbarket
Browse files Browse the repository at this point in the history
  • Loading branch information
dfl committed Jul 19, 2008
1 parent 977fa73 commit 5a17afa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/factories-and-workers/factory_builder.rb
Expand Up @@ -29,9 +29,9 @@ def factory_initializers
end

# factory methods are defined as class methods; this delegation will allow them to also be called as instance methods
def method_missing method, *args
def method_missing method, *args, &block
if self.class.respond_to?( method )
self.class.send method, *args
self.class.send method, *args, &block
else
super
end
Expand Down

0 comments on commit 5a17afa

Please sign in to comment.