Skip to content

Commit

Permalink
FIX: ruby 1.8.7 behaves differently when passing empty splat to method
Browse files Browse the repository at this point in the history
  • Loading branch information
rudionrails committed Sep 26, 2013
1 parent 2c58ba8 commit 1c23f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yell/logger.rb
Expand Up @@ -74,7 +74,7 @@ def initialize( *args, &block )
@options = args.last.is_a?(Hash) ? args.pop : {}

# adapters may be passed in the options
extract!(*@options[:adapters])
extract!(*@options[:adapters]) if @options.key?(:adapters)

# check if filename was given as argument and put it into the @options
if [String, Pathname].include?(args.last.class)
Expand Down

0 comments on commit 1c23f01

Please sign in to comment.