mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Formatting.
This commit is contained in:
parent
4ae2153578
commit
e2480cd877
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user