Removing redundant live method

This commit is contained in:
Andrew Hooker 2012-05-19 21:45:34 -05:00
parent 67a177fbb1
commit 4e8e714099

View file

@ -48,10 +48,6 @@ module Refinery
!draft and published_at <= Time.now
end
def live
where(["published_at <= ? and draft = ?", Time.now, false])
end
def friendly_id_source
custom_url.present? ? custom_url : title
end