summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-28 20:38:14 -0700
committerelijah <elijah@riseup.net>2013-06-28 20:38:14 -0700
commit3dbf13f3c53a741341897aa2af36d6ef8dcead2c (patch)
tree0e239b7981165b2067755cdc1e0f18bf2067ee65 /app/controllers
parent8083bf9ab76e7f253b94979cd9102250d70350d0 (diff)
new layout for the home buttons
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 06b245a..62d9df2 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -3,4 +3,16 @@ class ApplicationController < ActionController::Base
ActiveSupport.run_load_hooks(:application_controller, self)
+ protected
+
+ #
+ # Allows us to pass through bold text to flash messages. See format_flash() for where this is reversed.
+ #
+ # TODO: move to core
+ #
+ def bold(str)
+ "[b]#{str}[/b]"
+ end
+ helper_method :bold
+
end