class method self.backend=

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v4.0.13

Available in: v2.3.18 v3.0.20 v3.1.12 v3.2.22.5 v4.0.13

Signature

self.backend=(name)

No documentation comment.

Parameters

name req
Source
# File activesupport/lib/active_support/json/decoding.rb, line 20
      def backend=(name)
        if name.is_a?(Module)
          @backend = name
        else
          require "active_support/json/backends/#{name.to_s.downcase}.rb"
          @backend = ActiveSupport::JSON::Backends::const_get(name)
        end
        @parse_error = @backend::ParseError
      end

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

Defined in ActiveSupport::JSON

Type at least 2 characters to search.

↑↓ navigate · open · esc close