Class: Kuhsaft::AnchorBrick

Inherits:
Brick
  • Object
show all
Defined in:
app/models/kuhsaft/anchor_brick.rb

Instance Method Summary collapse

Methods inherited from Brick

#available_display_styles, #backend_label, #brick_list_type, #has_siblings?, #parents, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_class, #to_style_id, #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?

Instance Method Details

#collect_fulltextObject



11
12
13
# File 'app/models/kuhsaft/anchor_brick.rb', line 11

def collect_fulltext
  [super, caption].join(' ')
end

#to_idObject



15
16
17
# File 'app/models/kuhsaft/anchor_brick.rb', line 15

def to_id
  "anchor-#{caption.parameterize}"
end

#user_can_add_childs?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/models/kuhsaft/anchor_brick.rb', line 7

def user_can_add_childs?
  false
end