Class: Documentation::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/documentation/engine.rb

Class Method Summary collapse

Class Method Details

.mounted_pathObject



22
23
24
25
26
# File 'lib/documentation/engine.rb', line 22

def self.mounted_path
  if route = Rails.application.routes.routes.select { |r| r.app == self }.first
    route.path.spec.to_s
  end
end