Sha256: 2eed9e2cd735cb6378a8d80900b881f921db36574805d5fd2ef077b42d289877

Contents?: true

Size: 354 Bytes

Versions: 13

Compression:

Stored size: 354 Bytes

Contents

=begin rdoc
This class stores version text for Image. See Version for details.

=== Content

Uses ImageContent.
=end
class ImageVersion < DocumentVersion
  before_create :set_image_text

  def self.content_class
    ImageContent
  end

  private
  def set_image_text
    if self[:text].blank?
      self[:text] = "!#{self.node[:zip]}!"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zena-0.16.9 app/models/image_version.rb
zena-0.16.8 app/models/image_version.rb
zena-0.16.7 app/models/image_version.rb
zena-0.16.6 app/models/image_version.rb
zena-0.16.5 app/models/image_version.rb
zena-0.16.4 app/models/image_version.rb
zena-0.16.3 app/models/image_version.rb
zena-0.16.2 app/models/image_version.rb
zena-0.16.1 app/models/image_version.rb
zena-0.16.0 app/models/image_version.rb
zena-0.15.2 app/models/image_version.rb
zena-0.15.1 app/models/image_version.rb
zena-0.15.0 app/models/image_version.rb