Remove unused function from Page model

This commit is contained in:
Patrick Gansterer 2017-10-20 12:08:52 +02:00
parent db46f189be
commit cef951e421

View file

@ -28,10 +28,6 @@ class Page < ActiveRecord::Base
permalink == "Home"
end
def public_front_page?
permalink == "Public_frontpage"
end
def self.public_front_page
where(permalink: "Public_frontpage").first
end
@ -79,4 +75,3 @@ class Page < ActiveRecord::Base
end
end
end