Removing redundant live method
This commit is contained in:
parent
67a177fbb1
commit
4e8e714099
1 changed files with 0 additions and 4 deletions
|
@ -48,10 +48,6 @@ module Refinery
|
||||||
!draft and published_at <= Time.now
|
!draft and published_at <= Time.now
|
||||||
end
|
end
|
||||||
|
|
||||||
def live
|
|
||||||
where(["published_at <= ? and draft = ?", Time.now, false])
|
|
||||||
end
|
|
||||||
|
|
||||||
def friendly_id_source
|
def friendly_id_source
|
||||||
custom_url.present? ? custom_url : title
|
custom_url.present? ? custom_url : title
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue