method
inside_path?
v4.2.7 -
Show latest stable
- Class:
ActionView::PathResolver
inside_path?(path, filename)private
No documentation available.
# File actionview/lib/action_view/template/resolver.rb, line 231
def inside_path?(path, filename)
filename = File.expand_path(filename)
path = File.join(path, '')
filename.start_with?(path)
end