Class: Cms::FileBlock
- Inherits:
-
AbstractFileBlock
- Object
- ActiveRecord::Base
- AbstractFileBlock
- Cms::FileBlock
- Defined in:
- app/models/cms/file_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.
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/file_block.rb', line 9 def self.display_name "File" end |
Instance Method Details
#attachable_type ⇒ Object
Override default behavior to handle STI class when looking up other versions of attachments.
14 15 16 |
# File 'app/models/cms/file_block.rb', line 14 def attachable_type Cms::Attachment::FILE_BLOCKS end |