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:
parent
1b12ebba22
commit
4ece7c782b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user