class GalleryPhoto
Private Instance Methods
set_order()
click to toggle source
# File lib/buweb/gallery_photo.rb, line 27 def set_order self.order = exhibitable.gallery_photos.distinct(:order).compact.max.to_i + 1 end