Class: ActiveScaffold::Config::Kanban

Inherits:
Base
  • Object
show all
Defined in:
lib/active_scaffold/config/kanban.rb

Constant Summary collapse

@@title_method =
:to_label
:table

Instance Attribute Summary collapse

Instance Method Summary collapse

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_methodObject

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_columnObject

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

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_viewObject

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_methodObject

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