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