Class: Image

Inherits:
ApplicationRecord
  • 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



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

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

#byline=(new_caption) ⇒ Object



24
25
26
27
# File 'app/models/image.rb', line 24

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

#byline?Boolean

Returns:

  • (Boolean)


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

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