lib/surrounded/context/initializing.rb in surrounded-0.9.10 vs lib/surrounded/context/initializing.rb in surrounded-0.9.11
- old
+ new
@@ -27,10 +27,10 @@
instance.instance_eval(&initializer_block) if initializer_block
end
def default_initializer(params, setup_args, &block)
private_attr_reader(*setup_args)
- @initializer_block = block || nil
+ @initializer_block = block
mod = Module.new
line = __LINE__; mod.class_eval %{
def initialize(#{params})
@role_map = role_mapper_class.new
@initializer_arguments = Hash[#{setup_args.to_s}.zip([#{setup_args.join(',')}])]
\ No newline at end of file