diff options
author | Alexey Gaziev <alex.gaziev@gmail.com> | 2012-10-30 10:23:41 +0800 |
---|---|---|
committer | Alexey Gaziev <alex.gaziev@gmail.com> | 2012-10-30 10:23:41 +0800 |
commit | b955939d55b71905fa3e5036149ee4c84943c599 (patch) | |
tree | faceebca94859de69e12f4d7b48e9958b1631575 /activesupport/lib/active_support/json | |
parent | 4e23c0ef341c2cba6a4b21022d4ffbabdaa6e3da (diff) | |
download | rails-b955939d55b71905fa3e5036149ee4c84943c599.tar.gz rails-b955939d55b71905fa3e5036149ee4c84943c599.tar.bz2 rails-b955939d55b71905fa3e5036149ee4c84943c599.zip |
Make caller attribute in deprecation methods optional
Diffstat (limited to 'activesupport/lib/active_support/json')
-rw-r--r-- | activesupport/lib/active_support/json/variable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/json/variable.rb b/activesupport/lib/active_support/json/variable.rb index 42e25fbdb3..d69dab6408 100644 --- a/activesupport/lib/active_support/json/variable.rb +++ b/activesupport/lib/active_support/json/variable.rb @@ -7,7 +7,7 @@ module ActiveSupport def initialize(*args) message = 'ActiveSupport::JSON::Variable is deprecated and will be removed in Rails 4.1. ' \ 'For your own custom JSON literals, define #as_json and #encode_json yourself.' - ActiveSupport::Deprecation.warn(message, caller) + ActiveSupport::Deprecation.warn message super end |