Skip to content

Commit

Permalink
Adding support for :alert type from Devise gem
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbuda committed Apr 5, 2010
1 parent b776bcd commit 5c64978
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/flash_message_conductor.rb
Expand Up @@ -2,7 +2,7 @@

module PlanetArgon
module FlashMessageConductor
FLASH_MESSAGE_TYPES = [ :error, :notice, :message ]
FLASH_MESSAGE_TYPES = [ :error, :notice, :message, :alert ]

module ControllerHelpers
def add_error(msg)
Expand All @@ -16,6 +16,10 @@ def add_notice(msg)
def add_message(msg)
flash[:message] = msg
end

def add_alert(msg)
flash[:alert] = msg
end
end

module ViewHelpers
Expand Down

0 comments on commit 5c64978

Please sign in to comment.