Module: Engine2::MetaViewSupport
- Included in:
- ViewMeta
- Defined in:
- lib/engine2/meta.rb
Instance Method Summary collapse
Methods included from MetaModelSupport
#action_defined, #get_type_info, #hide_pk, #show_pk, #unsupported_association
Methods included from MetaAPISupport
#config, #decorate, #field_filter, #hide_fields, #info, #info!, #render, #show_fields
Methods included from MetaTabSupport
#field_tabs, #lazy_tab, #select_tabs
Methods included from MetaPanelSupport
#glyphicon, #modal_action, #panel, #panel_class, #panel_panel_template, #panel_template, #panel_title, #post_run
Methods included from MetaMenuSupport
Instance Method Details
#post_process ⇒ Object
748 749 750 751 752 753 754 755 756 757 758 759 760 761 |
# File 'lib/engine2/meta.rb', line 748 def post_process if fields = [:fields] fields = fields - static.get[:fields] if dynamic? decorate(fields) fields.each do |name| type_info = get_type_info(name) proc = ListRendererPostProcessors[type_info[:type]] proc.(self, name, type_info) if proc end end super end |
#pre_run ⇒ Object
739 740 741 742 743 744 745 746 |
# File 'lib/engine2/meta.rb', line 739 def pre_run super panel_template 'scaffold/view' panel_title LOCS[:view_title] (:panel_menu).option :cancel, icon: "remove" action.parent.*.(:item_menu).option action.name, icon: "file", button_loc: false end |