Class: Marty::ImportTypeView
- Defined in:
- app/components/marty/import_type_view.rb
Constant Summary
Constants included from Permissions
Permissions::ALL_ROLES, Permissions::REQ_ROLES
Instance Method Summary collapse
Methods inherited from Grid
#child_components, #class_can?, #configure_form_window, #get_json_sorter, #has_search_action?, #initialize, #linked_components
Methods included from Permissions
#can_perform_action?, #can_perform_actions, #current_user_roles, #has_any_perm?, #has_marty_permissions
Constructor Details
This class inherits a constructor from Marty::Grid
Instance Method Details
#configure(c) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/components/marty/import_type_view.rb', line 8 def configure(c) super c.title = I18n.t('import_type', default: "ImportType") c.model = "Marty::ImportType" c.attributes = [ :name, :role__name, :db_model_name, :cleaner_function, :validation_function, :preprocess_function, ] c.store_config.merge!({sorters: [{property: :name, direction: 'ASC'}]}) end |