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