class method self.with_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.with_backend(name)

No documentation comment.

Parameters

name req
Source
# File activesupport/lib/active_support/json/decoding.rb, line 30
      def with_backend(name)
        old_backend, self.backend = backend, name
        yield
      ensure
        self.backend = old_backend
      end

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