lib/active_view/presenter/presenter.rb
## adds blocks to the action calls.
adds blocks to the action calls.
adds blocks to the action calls .
def process_action(method_name, *args)
      args = args + @_action_params[:args]
      if action_params[:block]
        super(method_name, *args, &action_params[:block])
      else
        super(method_name, *args)
      end
    ensure
      @_action_params = { args: [], block: nil }
    end
def process_action ( method_name , * args ) args = args + @_action_params [ :args ] if action_params [ :block ] super ( method_name , * args , & action_params [ :block ] ) else super ( method_name , * args ) end ensure @_action_params = { args : [ ] , block : nil } end
adds blocks to the action calls.
adds blocks to the action calls .
method_name
<not_specific>
args
<not_specific>