Sha256: 28b48cad62e76f4145d5878dc334222a9742ca1a44bbb09e8455c86c9408eeb4

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

class Image < ActiveRecord::Base
  include DynamicImage::Model

  localizable do
    attribute :alternative
    attribute :caption
  end

  def byline
    ActiveSupport::Deprecation.warn "Image#byline is deprecated, use #caption"
    caption
  end

  def byline?
    ActiveSupport::Deprecation.warn "Image#byline? is deprecated, use #caption?"
    caption?
  end

  def byline=(new_caption)
    ActiveSupport::Deprecation.warn "Image#byline= is deprecated, use #caption="
    self.caption = new_caption
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pages_core-3.4.3 app/models/image.rb
pages_core-3.5.1 app/models/image.rb
pages_core-3.4.2 app/models/image.rb