Skip to content
Browse files

use caller[1], since decode method is always caller.first

  • Loading branch information...
1 parent 5634253 commit 8a7140da8d658a9aeca0b77fb67fc0a61c1b09e6 @arsduo arsduo committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/multi_json.rb
View
2 lib/multi_json.rb
@@ -114,7 +114,7 @@ def dump(object, options={})
# Sends of a deprecation warning
def deprecate(raw_message)
@messages ||= {}
- message = "#{Kernel.caller.first}: [DEPRECATION] #{raw_message}"
+ message = "#{Kernel.caller[1]}: [DEPRECATION] #{raw_message}"
unless @messages[message]
@messages[message] = true
Kernel.warn message

0 comments on commit 8a7140d

Please sign in to comment.
Something went wrong with that request. Please try again.