Class: Engine2::ArrayViewAction

Inherits:
Action show all
Includes:
ActionViewSupport
Defined in:
lib/engine2/action/array.rb

Instance Attribute Summary

Attributes inherited from Action

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

Instance Method Summary collapse

Methods included from ActionViewSupport

#field_tabs, included, #invoke, #post_process, #pre_run, #record

Methods included from ActionModelSupport

#hide_pk, #node_defined, #pre_run, #show_pk, #unsupported_association

Methods included from ActionAPISupport

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

Methods included from ActionTabSupport

#field_tabs, #select_tabs, #tab

Methods included from ActionPanelSupport

#modal_action, #panel, #panel_class, #panel_footer, #panel_header, #panel_panel_template, #panel_template, #panel_title, #post_run, #pre_run

Methods included from ActionMenuSupport

#menu, #menu?, #post_process

Methods inherited from 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, #request_action_proc_params, #split_keys

Constructor Details

This class inherits a constructor from Engine2::Action

Instance Method Details

#find_record(handler, id) ⇒ Object



100
101
102
# File 'lib/engine2/action/array.rb', line 100

def find_record handler, id
    node.parent.*.data_source(handler)[id.to_i]
end