method

as_variable

rails latest stable - Class: ActionView::PartialRenderer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

as_variable(options)
private

No documentation available.

# File actionview/lib/action_view/renderer/partial_renderer.rb, line 410
      def as_variable(options)
        if as = options[:as]
          raise_invalid_option_as(as) unless /\A[a-z_]\w*\z/.match?(as.to_s)
          as.to_sym
        end
      end