Permalink
Browse files

Default block to nil so ignored can be optional

  • Loading branch information...
1 parent 0c84876 commit eb21a449de59862a64fb9351e5da8b5b3f93b5f9 @joshuaclayton joshuaclayton committed Oct 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/factory_girl/declaration/dynamic.rb
@@ -1,7 +1,7 @@
module FactoryGirl
class Declaration
class Dynamic < Declaration
- def initialize(name, ignored = false, block)
+ def initialize(name, ignored = false, block = nil)
super(name, ignored)
@block = block
end

0 comments on commit eb21a44

Please sign in to comment.