Class: Tenon::Gallery
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Tenon::Gallery
- Includes:
- Reorderable
- Defined in:
- app/models/tenon/gallery.rb
Class Method Summary collapse
Methods included from Reorderable
Class Method Details
.find_with_photos(id) ⇒ Object
11 12 13 |
# File 'app/models/tenon/gallery.rb', line 11 def self.find_with_photos(id) includes(:photos).order('tenon_photos.list_order').find(id) end |