Class: Kuhsaft::AccordionBrick
- Inherits:
-
ColumnBrick
- Object
- ActiveRecord::Base
- Brick
- ColumnBrick
- Kuhsaft::AccordionBrick
- 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
#brick_types, #collect_fulltext, included, #renders_own_childs?, #to_brick_item_id, #to_brick_list_id, #uploader?, #user_can_add_childs?, #user_can_save?
Methods inherited from Brick
#available_display_styles, #backend_label, #brick_list_type, #cache_key, #has_siblings?, #parents, #partial_digest, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_id, #translated_available_display_styles, #update_fulltext
Instance Method Details
#allowed_brick_types ⇒ Object
11 12 13 |
# File 'app/models/kuhsaft/accordion_brick.rb', line 11 def allowed_brick_types %w(Kuhsaft::AccordionItemBrick) end |
#to_style_class ⇒ Object
7 8 9 |
# File 'app/models/kuhsaft/accordion_brick.rb', line 7 def to_style_class [super, 'accordion'].join(' ') end |
#user_can_delete? ⇒ Boolean
3 4 5 |
# File 'app/models/kuhsaft/accordion_brick.rb', line 3 def user_can_delete? true end |