Class: Marty::ApiAuthView

Inherits:
McflyGridPanel show all
Defined in:
app/components/marty/api_auth_view.rb

Constant Summary

Constants included from Permissions

Permissions::ALL_ROLES, Permissions::REQ_ROLES

Instance Method Summary collapse

Methods inherited from McflyGridPanel

#augment_attribute_config, #get_records

Methods inherited from Grid

#class_can?, #configure_form_window, #get_json_sorter, #has_search_action?

Methods included from Permissions

#can_perform_action?, #can_perform_actions, #current_user_roles, #has_any_perm?, #has_marty_permissions

Instance Method Details

#configure(c) ⇒ Object



7
8
9
10
11
12
13
14
# File 'app/components/marty/api_auth_view.rb', line 7

def configure(c)
  super

  c.title   = I18n.t('api_auth', default: "API Authorization")
  c.model   = "Marty::ApiAuth"
  c.attributes = [:app_name, :api_key, :script_name]
  c.store_config.merge!({sorters: [{property: :app_name, direction: 'ASC'}]})
end