1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Make application helper use config.

This commit is contained in:
Dan Barber 2014-12-11 13:16:11 +00:00
parent 1b12ebba22
commit 4ece7c782b

View File

@ -1,9 +1,9 @@
module ApplicationHelper
def page_title(title)
if title.present?
"#{title} - Dan Barber Photography"
"#{title} - #{APP_CONFIG['page_title']}"
else
"Dan Barber Photography"
APP_CONFIG['page_title']
end
end
end