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 "Image" end |
Instance Method Details
#set_attachment_file_path ⇒ Object
6 7 8 9 10 |
# File 'app/models/image_block.rb', line 6 def if @attachment_file_path && @attachment_file_path != .file_path .file_path = @attachment_file_path end end |
#set_attachment_section ⇒ Object
12 13 14 15 16 |
# File 'app/models/image_block.rb', line 12 def if @attachment_section_id && @attachment_section_id != .section_id .section_id = @attachment_section_id end end |