Class: ActiveScaffold::Config::Kanban
- Inherits:
-
Base
- Object
- Base
- ActiveScaffold::Config::Kanban
- Defined in:
- lib/active_scaffold/config/kanban.rb
Constant Summary collapse
- @@title_method =
:to_label
- @@links_position =
:table
Instance Attribute Summary collapse
-
#description_method ⇒ Object
the model’s method used for card’s description, set to nil for no description.
-
#group_by_column ⇒ Object
the model’s column used for kanban columns.
-
#links_position ⇒ Object
Returns the value of attribute links_position.
-
#replace_list_view ⇒ Object
enable it to replace list view with kanban, instead of being optional with view=kanban param.
-
#title_method ⇒ Object
the model’s method used for card’s title.
Instance Method Summary collapse
-
#initialize(core_config) ⇒ Kanban
constructor
A new instance of Kanban.
Constructor Details
#initialize(core_config) ⇒ Kanban
Returns a new instance of Kanban.
8 9 10 11 12 13 14 |
# File 'lib/active_scaffold/config/kanban.rb', line 8 def initialize(core_config) super @title_method = self.class.title_method @description_method = self.class.description_method @replace_list_view = self.class.replace_list_view @links_position = self.class.links_position end |
Instance Attribute Details
#description_method ⇒ Object
the model’s method used for card’s description, set to nil for no description
36 37 38 |
# File 'lib/active_scaffold/config/kanban.rb', line 36 def description_method @description_method end |
#group_by_column ⇒ Object
the model’s column used for kanban columns
42 43 44 |
# File 'lib/active_scaffold/config/kanban.rb', line 42 def group_by_column @group_by_column end |
#links_position ⇒ Object
Returns the value of attribute links_position.
44 45 46 |
# File 'lib/active_scaffold/config/kanban.rb', line 44 def links_position @links_position end |
#replace_list_view ⇒ Object
enable it to replace list view with kanban, instead of being optional with view=kanban param
39 40 41 |
# File 'lib/active_scaffold/config/kanban.rb', line 39 def replace_list_view @replace_list_view end |
#title_method ⇒ Object
the model’s method used for card’s title
33 34 35 |
# File 'lib/active_scaffold/config/kanban.rb', line 33 def title_method @title_method end |