Remove unused function from Page model
This commit is contained in:
parent
db46f189be
commit
cef951e421
1 changed files with 2 additions and 7 deletions
|
@ -28,10 +28,6 @@ class Page < ActiveRecord::Base
|
||||||
permalink == "Home"
|
permalink == "Home"
|
||||||
end
|
end
|
||||||
|
|
||||||
def public_front_page?
|
|
||||||
permalink == "Public_frontpage"
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.public_front_page
|
def self.public_front_page
|
||||||
where(permalink: "Public_frontpage").first
|
where(permalink: "Public_frontpage").first
|
||||||
end
|
end
|
||||||
|
@ -79,4 +75,3 @@ class Page < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue