instance method _write_render_options

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

_write_render_options()

No documentation comment.

Source
# File actionpack/lib/action_controller/metal/renderers.rb, line 18
      def _write_render_options
        renderers = _renderers.map do |name, value|
          <<-RUBY_EVAL
            if options.key?(:#{name})
              _process_options(options)
              return _render_option_#{name}(options.delete(:#{name}), options)
            end
          RUBY_EVAL
        end

        class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
          def _handle_render_options(options)
            #{renderers.join}
          end
        RUBY_EVAL
      end

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

Defined in ActionController::Renderers::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close