diff options
author | Rhenium <rhenium@rhe.jp> | 2013-12-20 12:37:55 +0900 |
---|---|---|
committer | Rhenium <rhenium@rhe.jp> | 2013-12-20 12:37:55 +0900 |
commit | 8c8e390da4d82dc06f0d6e5b758c5d12f496076d (patch) | |
tree | ffbdb2e96a5f5c0d675feb8f3501351cbbea9853 /app/helpers/application_helper.rb | |
parent | dc8377fbb341f1d4cbd3515a85dcc8ab9f88063a (diff) | |
download | aclog-8c8e390da4d82dc06f0d6e5b758c5d12f496076d.tar.gz |
fix page title helper
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 61382fc..e7cb03c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -27,16 +27,19 @@ module ApplicationHelper end alias format_source_text format_tweet_text - def title(*args) content_for :title do - (args.compact + ["aclog"]).join(" - ") + (args.compact).join(" - ") end end def caption(text) content_for :caption do - text + if text.is_a? Symbol + content_for(text) + else + text + end end end |