Class: Kuhsaft::LinkBrick
- Inherits:
-
Brick
- Object
- ActiveRecord::Base
- Brick
- Kuhsaft::LinkBrick
show all
- Defined in:
- app/models/kuhsaft/link_brick.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Brick
#backend_label, #brick_list_type, #has_siblings?, #parents, #set_locale, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_id
Methods included from BrickList
#allowed_brick_types, #brick_types, included, #renders_own_childs?, #to_brick_item_id, #to_brick_list_id, #user_can_delete?, #user_can_save?
Class Method Details
.styles ⇒ Object
7
8
9
|
# File 'app/models/kuhsaft/link_brick.rb', line 7
def self.styles
%w(pdf word excel button external)
end
|
Instance Method Details
#collect_fulltext ⇒ Object
15
16
17
|
# File 'app/models/kuhsaft/link_brick.rb', line 15
def collect_fulltext
[super, caption].join(' ')
end
|
#to_style_class ⇒ Object
11
12
13
|
# File 'app/models/kuhsaft/link_brick.rb', line 11
def to_style_class
[super, link_style.presence].join(' ')
end
|
#user_can_add_childs? ⇒ Boolean
19
20
21
|
# File 'app/models/kuhsaft/link_brick.rb', line 19
def user_can_add_childs?
false
end
|