Skip to content

Commit

Permalink
Merge pull request #8 from acconrad/patch-1
Browse files Browse the repository at this point in the history
Remove redundant to_s call
  • Loading branch information
eddorre committed Feb 5, 2015
2 parents 8741454 + 5e1d18f commit 68c835b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flash-message-conductor/controller_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module ControllerHelpers
module ClassMethods
end
FLASH_MESSAGE_TYPES.each do |message_type|
define_method("add_#{message_type.to_s}") do |message, *options|
define_method("add_#{message_type}") do |message, *options|
options = options.first || Hash.new

flash[message_type] = message
Expand All @@ -30,4 +30,4 @@ def self.included(base)
base.helper_method :flash_message_set?
end
end
end
end

0 comments on commit 68c835b

Please sign in to comment.