# File lib/netzke/actions.rb, line 42 def action(name, config = {}, &block) register_action(name) config[:name] = name.to_s method_name = ACTION_METHOD_NAME % name if block_given? define_method(method_name, &block) else if superclass.instance_methods.map(&:to_s).include?(method_name) define_method(method_name) do super().merge(config) end else define_method(method_name) do config end end end end
Generated with the Darkfish Rdoc Generator 2.