Module: ActiveScaffoldKanban::ConfigListHelpers
- Defined in:
- lib/active_scaffold_kanban/config_list.rb
Instance Method Summary collapse
Instance Method Details
#config_list_columns ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/active_scaffold_kanban/config_list.rb', line 41 def config_list_columns if @kanban_view columns = user_kanban_columns # get selected columns first, to keep sorting columns += available_kanban_columns - columns # add not selected columns if user has selected some columns.map do |label, value| [label, (@kanban_column.association ? value.id : value).to_s.to_sym] end else super end end |
#config_list_sorting? ⇒ Boolean
37 38 39 |
# File 'lib/active_scaffold_kanban/config_list.rb', line 37 def config_list_sorting? super unless @kanban_view end |