summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
blob: 62d9df272a6c41bf2f238197a8bf9ae093929655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class ApplicationController < ActionController::Base
  protect_from_forgery

  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