lib/surrounded/context/initializing.rb in surrounded-0.9.8 vs lib/surrounded/context/initializing.rb in surrounded-0.9.9

- old
+ new

@@ -34,15 +34,17 @@ @initializer_block = block || nil mod = Module.new line = __LINE__; mod.class_eval %{ def initialize(#{params}) @role_map = role_mapper_class.new - map_roles(#{setup_args.to_s}.zip([#{setup_args.join(',')}])) + @initializer_arguments = Hash[#{setup_args.to_s}.zip([#{setup_args.join(',')}])] + map_roles(@initializer_arguments) self.class.apply_initializer_block(self) end }, __FILE__, line const_set("ContextInitializer", mod) include mod + private_attr_reader :initializer_arguments end end end end \ No newline at end of file