class Documentation::Engine

Public Class Methods

mounted_path() click to toggle source
# File lib/documentation/engine.rb, line 22
def self.mounted_path
  if route = Rails.application.routes.routes.select { |r| r.app == self or r.app.try(:app) == self }.first
    route.path.spec.to_s
  end
end