Method: Marty::BaseRuleView#configure

Defined in:
app/components/marty/base_rule_view.rb

#configure(c) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
# File 'app/components/marty/base_rule_view.rb', line 20

def configure(c)
  super
  c.model = self.class.klass
  c.title = I18n.t('rule')
  c.attributes = self.class.base_fields +
                 guard_info_attributes + self.class.computed_fields
  c.store_config.merge!(sorters: [{ property: :name, direction: 'ASC' }])
  c.editing      = :in_form
  c.paging       = :pagination
  c.multi_select = false
end