Class: Image

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
DynamicImage::Model, PagesCore::Sweepable
Defined in:
app/models/image.rb

Instance Attribute Summary

Attributes included from PagesCore::Sweepable

#cache_swept

Instance Method Summary collapse

Instance Method Details

#bylineObject



10
11
12
13
# File 'app/models/image.rb', line 10

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

#byline=(new_caption) ⇒ Object



20
21
22
23
# File 'app/models/image.rb', line 20

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

#byline?Boolean

Returns:

  • (Boolean)


15
16
17
18
# File 'app/models/image.rb', line 15

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