Class: Marty::PostingGrid

Inherits:
Grid
  • Object
show all
Defined in:
app/components/marty/posting_grid.rb

Constant Summary

Constants included from Permissions

Marty::Permissions::NETZKE_ENDPOINTS

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_call_endpoint?, #can_perform_action?, #can_perform_actions, #current_user_roles, extended, #has_any_perm?, #has_marty_permissions, #has_perm?

Constructor Details

This class inherits a constructor from Marty::Grid

Instance Method Details

#configure(c) ⇒ Object



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

def configure(c)
  super

  c.header             = false
  c.model              = 'Marty::Posting'
  c.attributes = [:name, :created_dt, :user__name, :comment]
  c.multi_select = false
  c.store_config.merge!(sorters: [{ property: :created_dt, direction: 'DESC' }],
                         page_size: 12)
end

#default_bbarObject



28
29
30
# File 'app/components/marty/posting_grid.rb', line 28

def default_bbar
  [:delete, :detail]
end