class method self.new

Ruby on Rails 4.0.13

Since v4.0.13 Last seen in v4.0.13

Signature

self.new(*args)

No documentation comment.

Parameters

args rest
Source
# File activesupport/lib/active_support/json/variable.rb, line 7
      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
        super
      end

Defined in activesupport/lib/active_support/json/variable.rb line 7 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::JSON::Variable

Type at least 2 characters to search.

↑↓ navigate · open · esc close