1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Formatting.

This commit is contained in:
Dan Barber 2014-12-11 13:16:32 +00:00
parent 3a7772c85b
commit 6c15d5f30b

View File

@ -8,12 +8,9 @@ class Photo < ActiveRecord::Base
@@per_page = 11
scope :enabled, lambda {
where(enabled: true)
}
scope :featured, lambda {
enabled.where(featured: true)
}
scope :enabled, lambda { where(enabled: true) }
scope :featured, lambda { enabled.where(featured: true) }
def to_s
self.title