module LocaleFlash::Rails::ActionController

Private Instance Methods

locale_alert(options={}) click to toggle source
# File lib/locale_flash/rails/action_controller.rb, line 20
def locale_alert(options={})
  locale_flash :alert, options
end
locale_flash(type, options={}) click to toggle source
# File lib/locale_flash/rails/action_controller.rb, line 7
def locale_flash(type, options={})
  flash[type] = LocaleFlash::Flash.new(
    :controller => controller_path,
    :action     => action_name,
    :type       => type,
    :options    => options
  ).to_params
end
locale_notice(options={}) click to toggle source
# File lib/locale_flash/rails/action_controller.rb, line 16
def locale_notice(options={})
  locale_flash :notice, options
end