Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Default block to nil so ignored can be optional

  • Loading branch information...
commit eb21a449de59862a64fb9351e5da8b5b3f93b5f9 1 parent 0c84876
@joshuaclayton joshuaclayton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/factory_girl/declaration/dynamic.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.