Method: ActionDispatch::Routing::RouteWrapper#internal?

Defined in:
actionpack/lib/action_dispatch/routing/inspector.rb

#internal?Boolean

Returns:

  • (Boolean)


71
72
73
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 71

def internal?
  controller.to_s =~ %r{\Arails/(info|mailers|welcome)} || path =~ %r{\A#{Rails.application.config.assets.prefix}\z}
end