Sha256: 5462ef256e16ca7afaeac054d19daad3c6b85ecddb7e3da28e87929dcd561bd8

Contents?: true

Size: 578 Bytes

Versions: 35

Compression:

Stored size: 578 Bytes

Contents

class ImageBlock < AbstractFileBlock

  acts_as_content_block :versioned => { :version_foreign_key => :file_block_id },
    :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
    "Image"
  end  

end

Version data entries

35 entries across 35 versions & 10 rubygems

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