Class: Engine2::MetaOnChangeSupport::OnChangeMeta

Inherits:
Engine2::Meta show all
Includes:
Engine2::MetaAPISupport, Engine2::MetaAngularSupport
Defined in:
lib/engine2/meta.rb

Direct Known Subclasses

OnChangeGetMeta, OnChangePostMeta

Instance Attribute Summary

Attributes inherited from Engine2::Meta

#action, #assets, #invokable, #static

Instance Method Summary collapse

Methods included from Engine2::MetaAPISupport

#config, #decorate, #field_filter, #hide_fields, #info, #info!, #loc!, #reload_routes!, #render, #show_fields

Methods included from Engine2::MetaAngularSupport

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

Methods inherited from Engine2::Meta

#action_defined, #check_static_meta, #dynamic?, #freeze_meta, #get, http_method, #http_method, inherited, #initialize, #invoke!, #lookup, #merge, #meta_type, meta_type, #post_process, #post_run, #pre_run, #request, #split_keys

Constructor Details

This class inherits a constructor from Engine2::Meta

Instance Method Details

#invoke(handler) ⇒ Object



518
519
520
# File 'lib/engine2/meta.rb', line 518

def invoke handler
    {}
end

#request_meta_proc_params(handler) ⇒ Object



508
509
510
511
512
513
514
515
516
# File 'lib/engine2/meta.rb', line 508

def request_meta_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