Class: Kuhsaft::TwoColumnBrick
- Inherits:
-
ColumnBrick
- Object
- ActiveRecord::Base
- Brick
- ColumnBrick
- Kuhsaft::TwoColumnBrick
- Defined in:
- app/models/kuhsaft/two_column_brick.rb
Class Method Summary collapse
Instance Method Summary collapse
- #partitioning ⇒ Object
-
#renders_own_childs? ⇒ Boolean
Use own rendering implementation to show columns side by side.
- #to_style_class ⇒ Object
-
#user_can_add_childs? ⇒ Boolean
Childs should only contain ColumnBricks, therefore we don’t want the user to mess with it.
- #user_can_delete? ⇒ Boolean
- #user_can_save? ⇒ Boolean
Methods included from BrickList
#allowed_brick_types, #brick_types, #collect_fulltext, included, #to_brick_item_id, #to_brick_list_id, #uploader?
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
Class Method Details
Instance Method Details
#partitioning ⇒ Object
28 29 30 |
# File 'app/models/kuhsaft/two_column_brick.rb', line 28 def partitioning super || 0 end |
#renders_own_childs? ⇒ Boolean
Use own rendering implementation to show columns side by side
24 25 26 |
# File 'app/models/kuhsaft/two_column_brick.rb', line 24 def renders_own_childs? true end |
#to_style_class ⇒ Object
36 37 38 |
# File 'app/models/kuhsaft/two_column_brick.rb', line 36 def to_style_class [super, 'row-fluid'].join(' ') end |
#user_can_add_childs? ⇒ Boolean
Childs should only contain ColumnBricks, therefore we don’t want the user to mess with it
9 10 11 |
# File 'app/models/kuhsaft/two_column_brick.rb', line 9 def user_can_add_childs? false end |
#user_can_delete? ⇒ Boolean
13 14 15 |
# File 'app/models/kuhsaft/two_column_brick.rb', line 13 def user_can_delete? true end |
#user_can_save? ⇒ Boolean
17 18 19 |
# File 'app/models/kuhsaft/two_column_brick.rb', line 17 def user_can_save? true end |