Class: Qbrick::AssetBrick
- Inherits:
-
Brick
- Object
- ActiveRecord::Base
- Brick
- Qbrick::AssetBrick
show all
- Defined in:
- app/models/qbrick/asset_brick.rb
Class Method Summary
collapse
Instance Method Summary
collapse
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
Methods included from BrickList
#allowed_brick_types, #brick_types, included, #renders_own_childs?, #to_brick_item_id, #to_brick_list_id, #uploader?, #user_can_delete?, #user_can_save?
Class Method Details
.styles ⇒ Object
8
9
10
|
# File 'app/models/qbrick/asset_brick.rb', line 8
def self.styles
%w(pdf word excel button)
end
|
Instance Method Details
#collect_fulltext ⇒ Object
16
17
18
|
# File 'app/models/qbrick/asset_brick.rb', line 16
def collect_fulltext
[super, caption].join(' ')
end
|
#to_style_class ⇒ Object
12
13
14
|
# File 'app/models/qbrick/asset_brick.rb', line 12
def to_style_class
[super, link_style.presence].join(' ')
end
|
#user_can_add_childs? ⇒ Boolean
20
21
22
|
# File 'app/models/qbrick/asset_brick.rb', line 20
def user_can_add_childs?
false
end
|