Class: Gallery

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Forge::Reorderable
Defined in:
lib/forge/app/models/gallery.rb

Class Method Summary collapse

Methods included from Forge::Reorderable

included

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