Class: Cms::ImageBlock
- Inherits:
-
AbstractFileBlock
- Object
- ActiveRecord::Base
- AbstractFileBlock
- Cms::ImageBlock
- Defined in:
- app/models/cms/image_block.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#attachable_type ⇒ Object
Override default behavior to handle STI class when looking up other versions of attachments.
- #image ⇒ Object
Methods inherited from AbstractFileBlock
#file_size, #parent, #path, publishable?, #set_attachment_path, #set_attachment_section, with_parent_id
Class Method Details
.display_name ⇒ Object
10 11 12 |
# File 'app/models/cms/image_block.rb', line 10 def self.display_name "Image" end |
Instance Method Details
#attachable_type ⇒ Object
Override default behavior to handle STI class when looking up other versions of attachments.
19 20 21 |
# File 'app/models/cms/image_block.rb', line 19 def attachable_type Cms::Attachment::FILE_BLOCKS end |
#image ⇒ Object
14 15 16 |
# File 'app/models/cms/image_block.rb', line 14 def image file end |