summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-28 20:38:14 -0700
committerelijah <elijah@riseup.net>2013-07-04 04:04:55 -0700
commit4863ce5e78d880f1ca8a1874cd03022afb061f4a (patch)
treea0a5c72333f90f7656633aad39110346f9404e9a /app/controllers/application_controller.rb
parent7d2163263c8e5af7f4d7a2d40cd55eefac188e58 (diff)
new layout for the home buttons
Diffstat (limited to 'app/controllers/application_controller.rb')
-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