Class: Qbrick::PlaceholderBrick
- Inherits:
-
Brick
- Object
- ActiveRecord::Base
- Brick
- Qbrick::PlaceholderBrick
show all
- Defined in:
- app/models/qbrick/placeholder_brick.rb
Constant Summary
collapse
- PARTIAL_PATH =
'/app/views/qbrick/placeholder_bricks/partials/_*.haml'
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Brick
#available_display_styles, #backend_label, #brick_list_type, #has_siblings?, #parents, #partial_digest, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_class, #to_style_id, #translated_available_display_styles, #update_fulltext
Methods included from BrickList
#allowed_brick_types, #brick_types, #collect_fulltext, included, #renders_own_childs?, #to_brick_item_id, #to_brick_list_id, #uploader?, #user_can_delete?, #user_can_save?
Class Method Details
.available_partials ⇒ Object
Instance Method Details
#cache_key ⇒ Object
19
20
21
|
# File 'app/models/qbrick/placeholder_brick.rb', line 19
def cache_key
super + partial_digest(partial_name)
end
|
#partial_name ⇒ Object
15
16
17
|
# File 'app/models/qbrick/placeholder_brick.rb', line 15
def partial_name
"qbrick/placeholder_bricks/partials/#{template_name}"
end
|
#user_can_add_childs? ⇒ Boolean
11
12
13
|
# File 'app/models/qbrick/placeholder_brick.rb', line 11
def user_can_add_childs?
false
end
|