Class: Cms::FileBlock

Inherits:
AbstractFileBlock show all
Defined in:
app/models/cms/file_block.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractFileBlock

#file_size, #parent, #path, publishable?, #set_attachment_path, #set_attachment_section

Class Method Details

.display_nameObject



9
10
11
# File 'app/models/cms/file_block.rb', line 9

def self.display_name
  "File"
end

Instance Method Details

#attachable_typeObject

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