instance method build_view_paths

Ruby on Rails 8.1.2

Since v6.0.6 Private

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

Signature

build_view_paths(paths)

Whenever setting view paths, makes a copy so that we can manipulate them in instance objects as we wish.

Parameters

paths req
Source
# File actionview/lib/action_view/lookup_context.rb, line 166
      def build_view_paths(paths)
        if ActionView::PathSet === paths
          paths
        else
          ActionView::PathSet.new(Array(paths))
        end
      end

Defined in actionview/lib/action_view/lookup_context.rb line 166 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::LookupContext::ViewPaths

Type at least 2 characters to search.

↑↓ navigate · open · esc close