Sha256: 5557666c2f8b5bebb6e7418ec6548fa84bc1112fcbd4291d3cce639f95f2c422

Contents?: true

Size: 588 Bytes

Versions: 18

Compression:

Stored size: 588 Bytes

Contents

require 'active_support/deprecation'

module ActiveSupport
  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. ' \
                                        'For your own custom JSON literals, define #as_json and #encode_json yourself.'
        super
      end

      def as_json(options = nil) self end #:nodoc:
      def encode_json(encoder) self end #:nodoc:
    end
  end
end

Version data entries

18 entries across 15 versions & 5 rubygems

Version Path
challah-rolls-0.2.0 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
challah-rolls-0.1.0 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
challah-0.8.0.pre vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
challah-0.7.1 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
challah-0.7.0 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
challah-0.7.0.pre2 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
challah-0.7.0.pre vendor/bundle/gems/activesupport-3.2.7/lib/active_support/json/variable.rb
activesupport-3.2.7 lib/active_support/json/variable.rb
activesupport-3.2.7.rc1 lib/active_support/json/variable.rb
challah-0.6.2 vendor/bundle/gems/activesupport-3.2.6/lib/active_support/json/variable.rb
challah-0.6.2 vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/variable.rb
initforthe-cookies-0.0.1 vendor/bundle/gems/activesupport-3.2.6/lib/active_support/json/variable.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/json/variable.rb
activesupport-3.2.6 lib/active_support/json/variable.rb
challah-0.6.1 vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/variable.rb
activesupport-3.2.5 lib/active_support/json/variable.rb