mini_logger 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mini_logger.rb +2 -2
- data/lib/version.rb +1 -1
- metadata +1 -1
data/lib/mini_logger.rb
CHANGED
@@ -22,9 +22,9 @@ module MiniLogger
|
|
22
22
|
|
23
23
|
if( VALID_METHODS.include?( method ) )
|
24
24
|
if( block_given? )
|
25
|
-
@logger.send( method, arguments, block )
|
25
|
+
@logger.send( method, arguments.length == 1 ? arguments[0] : arguments, block )
|
26
26
|
else
|
27
|
-
@logger.send( method, arguments )
|
27
|
+
@logger.send( method, arguments.length == 1 ? arguments[0] : arguments )
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/lib/version.rb
CHANGED