instance method
build_view_paths
Ruby on Rails 8.1.2
Since v6.0.6 PrivateSignature
build_view_paths(paths)
Whenever setting view paths, makes a copy so that we can manipulate them in instance objects as we wish.
Parameters
-
pathsreq
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