instance method _process_options

Ruby on Rails 8.1.2

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

_process_options(options)

Process controller specific options, as status, content-type and location.

Parameters

options req
Source
# File actionpack/lib/action_controller/metal/rendering.rb, line 256
      def _process_options(options)
        status, content_type, location = options.values_at(:status, :content_type, :location)

        self.status = status if status
        self.content_type = content_type if content_type
        headers["Location"] = url_for(location) if location

        super
      end

Defined in actionpack/lib/action_controller/metal/rendering.rb line 256 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Rendering

Type at least 2 characters to search.

↑↓ navigate · open · esc close