instance method
endpoint
Ruby on Rails 6.1.7.10
Since v3.1.12Signature
endpoint()
Returns the endpoint for this engine. If none is registered, defaults to an ActionDispatch::Routing::RouteSet.
Source
# File railties/lib/rails/engine.rb, line 532
def endpoint
self.class.endpoint || routes
end
Defined in railties/lib/rails/engine.rb line 532
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Engine