class method self.set_default_backend

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v3.0.20

Available in: v2.3.18 v3.0.20

Signature

self.set_default_backend()

No documentation comment.

Source
# File activesupport/lib/active_support/json/decoding.rb, line 37
      def set_default_backend
        DECODERS.find do |name|
          begin
            self.backend = name
            true
          rescue LoadError
            # Try next decoder.
            false
          end
        end
      end

Defined in activesupport/lib/active_support/json/decoding.rb line 37 · 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