Class: Photo
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Photo
- 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
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
22 23 24 |
# File 'app/models/photo.rb', line 22 def has_caption_localized? self.photable.present? && self.photable.caption_localized_status end |