Class: Photo

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActiveRecord::LolSortable, Mongoid::Document, Mongoid::LolSortable, Mongoid::Timestamps
Defined in:
app/models/photo.rb,
app/models/photo.rb

Instance Method Summary collapse

Instance Method Details

#has_caption?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/photo.rb', line 18

def has_caption?
  self.photable.present? && self.photable.caption_status
end

#has_caption_localized?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/photo.rb', line 22

def has_caption_localized?
  self.photable.present? && self.photable.caption_localized_status
end