Class: Kuhsaft::AccordionBrick
- Inherits:
-
ColumnBrick
- Object
- ActiveRecord::Base
- Brick
- ColumnBrick
- Kuhsaft::AccordionBrick
- Defined in:
- app/models/kuhsaft/accordion_brick.rb
Instance Method Summary collapse
- #to_style_class ⇒ Object
-
#user_can_delete? ⇒ Boolean
TODO: validate only accept AccordionItem as child.
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_class ⇒ Object
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
8 9 10 |
# File 'app/models/kuhsaft/accordion_brick.rb', line 8 def user_can_delete? true end |