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

Version Path
SFEley-browsercms-3.0.2 app/models/file_block.rb
buzzware-browsercms-3.0.2 app/models/file_block.rb
coredumplings-browsercms-3.0.0 app/models/file_block.rb
nate-browsercms-3.0.210 app/models/file_block.rb
nate-browsercms-3.0.211 app/models/file_block.rb
we5-browsercms-3.0.1.1 app/models/file_block.rb
webficient-browsercms-3.0.1 app/models/file_block.rb
webficient-browsercms-3.0.2 app/models/file_block.rb
webficient-browsercms-3.0.3 app/models/file_block.rb
webficient-browsercms-3.0.4 app/models/file_block.rb
browsercms-3.1.4 app/models/file_block.rb
browsercms-3.3.2 app/models/file_block.rb
browsercms-3.3.1 app/models/file_block.rb
browsercms-3.3.0 app/models/file_block.rb
browsercms-3.1.3 app/models/file_block.rb
browsercms-3.3.0.beta app/models/file_block.rb
bf4-browsercms-3.1.0 app/models/file_block.rb
drujensen-browsercms-3.2.0 app/models/file_block.rb
browsercms-3.1.2 app/models/file_block.rb
browsercms-3.1.1 app/models/file_block.rb