Class: ImageBlock
- Inherits:
-
AbstractFileBlock
- Object
- ActiveRecord::Base
- AbstractFileBlock
- ImageBlock
- Defined in:
- app/models/image_block.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AbstractFileBlock
Class Method Details
.display_name ⇒ Object
18 19 20 |
# File 'app/models/image_block.rb', line 18 def self.display_name I18n.t "models.image_block.display_name" end |
Instance Method Details
#set_attachment_file_path ⇒ Object
6 7 8 9 10 |
# File 'app/models/image_block.rb', line 6 def if && != .file_path .file_path = end end |
#set_attachment_section ⇒ Object
12 13 14 15 16 |
# File 'app/models/image_block.rb', line 12 def if && != .section_id .section_id = end end |