Class: Ecm::Videos::Category
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ecm::Videos::Category
- Includes:
- ActsAsPublished::ActiveRecord, Models::MarkupConcern
- Defined in:
- app/models/ecm/videos/category.rb
Instance Method Summary collapse
Instance Method Details
#preview_image ⇒ Object
17 18 19 |
# File 'app/models/ecm/videos/category.rb', line 17 def preview_image videos.first.try(:preview_image) end |
#videos_count ⇒ Object
21 22 23 |
# File 'app/models/ecm/videos/category.rb', line 21 def videos_count videos.count end |