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
Class Method Details
.display_name ⇒ Object
9 10 11 |
# File 'app/models/cms/image_block.rb', line 9 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.
18 19 20 |
# File 'app/models/cms/image_block.rb', line 18 def attachable_type Cms::Attachment::FILE_BLOCKS end |
#image ⇒ Object
13 14 15 |
# File 'app/models/cms/image_block.rb', line 13 def image file end |