Class: Cas::Engine

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

Class Method Summary collapse

Class Method Details

.mounted_pathObject



30
31
32
33
34
35
# File 'lib/cas/engine.rb', line 30

def self.mounted_path
  route = Rails.application.routes.routes.detect do |current_route|
    current_route.app == self
  end
  route && route.path
end