instance method
endpoint
Ruby on Rails 4.2.9
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 508
def endpoint
self.class.endpoint || routes
end
Defined in railties/lib/rails/engine.rb line 508
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Engine