Class: Kuhsaft::AccordionBrick

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

Instance Method Summary collapse

Methods inherited from ColumnBrick

#renders_own_childs?, #user_can_save?

Methods included from BrickList

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

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

#to_style_classObject



12
13
14
# File 'app/models/kuhsaft/accordion_brick.rb', line 12

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

#user_can_delete?Boolean

TODO: validate only accept AccordionItem as child

Returns:

  • (Boolean)


8
9
10
# File 'app/models/kuhsaft/accordion_brick.rb', line 8

def user_can_delete?
  true
end