Class: Kuhsaft::ImageBrick
- Defined in:
- app/models/kuhsaft/image_brick.rb
Instance Method Summary collapse
Methods inherited from Brick
#backend_label, #brick_list_type, #parents, #set_locale, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_class, #to_style_id
Methods included from BrickList
included, #renders_own_childs?, #to_brick_item_id, #to_brick_list_id, #user_can_add_childs?, #user_can_delete?, #user_can_save?
Instance Method Details
#collect_fulltext ⇒ Object
15 16 17 |
# File 'app/models/kuhsaft/image_brick.rb', line 15 def collect_fulltext [super, ].join(' ') end |
#resize_image_if_size_changed ⇒ Object
11 12 13 |
# File 'app/models/kuhsaft/image_brick.rb', line 11 def resize_image_if_size_changed image.recreate_versions! if image_size_changed? end |