Class: Engine2::ActionOnChangeSupport::OnChangeAction

Inherits:
Engine2::Action show all
Includes:
Engine2::ActionAPISupport, Engine2::ActionAngularSupport
Defined in:
lib/engine2/action.rb

Direct Known Subclasses

OnChangeGetAction, OnChangePostAction

Instance Attribute Summary

Attributes inherited from Engine2::Action

#assets, #invokable, #meta, #node, #static

Instance Method Summary collapse

Methods included from Engine2::ActionAPISupport

#config, #decorate, #field_filter, #fields, #fields!, #hide_fields, #loc!, #render, #show_fields

Methods included from Engine2::ActionAngularSupport

#ng_call, #ng_execute, #ng_info!, #ng_record, #ng_record!

Methods inherited from Engine2::Action

action_type, #action_type, #arguments, #check_anonymous_action_class, #check_static_action, #define_invoke, #define_method, #dynamic?, #execute, #freeze_action, #http_method, http_method, inherit, inherited, #initialize, #invoke!, #join_keys, #lookup, #merge, #node_defined, #post_process, #post_run, #pre_run, #repeat, #request, #split_keys

Constructor Details

This class inherits a constructor from Engine2::Action

Instance Method Details

#request_action_proc_params(handler) ⇒ Object



601
602
603
604
605
606
607
608
609
# File 'lib/engine2/action.rb', line 601

def request_action_proc_params handler
    if handler.request.post?
        json = handler.post_to_json
        [json[:value], json[:record]]
    else
        params = handler.request.params
        [params["value"], params["record"]]
    end
end