Sha256: 6f85feda4989c57e32398fe5f507999ebc26dec3579767128e4efcc364398e39
Contents?: true
Size: 514 Bytes
Versions: 35
Compression:
Stored size: 514 Bytes
Contents
class FileBlock < AbstractFileBlock acts_as_content_block :belongs_to_attachment => true, :taggable => true def set_attachment_file_path if @attachment_file_path && @attachment_file_path != attachment.file_path attachment.file_path = @attachment_file_path end end def set_attachment_section if @attachment_section_id && @attachment_section_id != attachment.section_id attachment.section_id = @attachment_section_id end end def self.display_name "File" end end
Version data entries
35 entries across 35 versions & 10 rubygems