class RestRails::Engine

Public Class Methods

mounted_path() click to toggle source
# File lib/rest_rails/engine.rb, line 5
def self.mounted_path
  route = Rails.application.routes.routes.detect do |route|
    self.in?([route.app, route.app.app])
  end
  route && (route.path.spec || route.path)
end