mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Formatting.
This commit is contained in:
parent
3a7772c85b
commit
6c15d5f30b
@ -8,12 +8,9 @@ class Photo < ActiveRecord::Base
|
|||||||
|
|
||||||
@@per_page = 11
|
@@per_page = 11
|
||||||
|
|
||||||
scope :enabled, lambda {
|
scope :enabled, lambda { where(enabled: true) }
|
||||||
where(enabled: true)
|
|
||||||
}
|
scope :featured, lambda { enabled.where(featured: true) }
|
||||||
scope :featured, lambda {
|
|
||||||
enabled.where(featured: true)
|
|
||||||
}
|
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
self.title
|
self.title
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user