Skip to content

Commit

Permalink
Fix the deprecation horizon. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Aug 7, 2012
1 parent 83f2ffc commit 82fe116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/json/variable.rb
Expand Up @@ -5,7 +5,7 @@ module JSON
# Deprecated: A string that returns itself as its JSON-encoded form.
class Variable < String
def initialize(*args)
ActiveSupport::Deprecation.warn 'ActiveSupport::JSON::Variable is deprecated and will be removed in Rails 4.0. ' \
ActiveSupport::Deprecation.warn '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.'
super
end
Expand Down

0 comments on commit 82fe116

Please sign in to comment.