Skip to content

Commit

Permalink
Default block to nil so ignored can be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Oct 9, 2011
1 parent 0c84876 commit eb21a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit eb21a44

Please sign in to comment.