Class: Marty::LogView
- Includes:
- Extras::Layout
- Defined in:
- app/components/marty/log_view.rb
Constant Summary
Constants included from Extras::Layout
Extras::Layout::BOOL_MAP, Extras::Layout::MAP_BOOL
Constants included from Permissions
Permissions::ALL_ROLES, Permissions::REQ_ROLES
Instance Method Summary collapse
Methods included from Extras::Layout
#bool_getter, #bool_setter, #dispfield, #enum_array, #enum_column, #enum_setter, #fieldset, #hbox, #hspacer, #jsonb_field, #nullable_bool_column, #range_column, #range_field, #range_getter, #range_setter, #textarea_field, #vbox, #vspacer
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
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/components/marty/log_view.rb', line 6 def configure(c) super c.title ||= I18n.t('log_viewer', default: "Log Viewer") c.model = "Marty::Log" c.paging = :buffered c.editing = :in_form c.attributes = [ :timestamp_custom, :message_type, :message, :details ] c.store_config.merge!(sorters: [{property: :timestamp, direction: 'DESC'}]) end |
#default_context_menu ⇒ Object
23 24 25 |
# File 'app/components/marty/log_view.rb', line 23 def [] end |
#default_form_items ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'app/components/marty/log_view.rb', line 27 def default_form_items [ :timestamp_custom, :message_type, :message, textarea_field(:details).merge!({height: 400}) ] end |