Class: Kuhsaft::AccordionItemBrick

Inherits:
ColumnBrick show all
Defined in:
app/models/kuhsaft/accordion_item_brick.rb

Instance Method Summary collapse

Methods inherited from ColumnBrick

#renders_own_childs?

Methods included from BrickList

included, #renders_own_childs?, #to_brick_item_id, #to_brick_list_id, #user_can_add_childs?

Methods inherited from Brick

#backend_label, #brick_list_type, #parents, #set_locale, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_id

Instance Method Details

#collect_fulltextObject



18
19
20
# File 'app/models/kuhsaft/accordion_item_brick.rb', line 18

def collect_fulltext
  [super, caption].join(' ')
end

#to_style_classObject



10
11
12
# File 'app/models/kuhsaft/accordion_item_brick.rb', line 10

def to_style_class
  [super, 'accordion-group'].join(' ')
end

#user_can_delete?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/models/kuhsaft/accordion_item_brick.rb', line 6

def user_can_delete?
  true
end

#user_can_save?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/kuhsaft/accordion_item_brick.rb', line 14

def user_can_save?
  true
end