Class: Cas::Engine

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

Class Method Summary collapse

Class Method Details

.mounted_pathObject


26
27
28
29
30
31
# File 'lib/cas/engine.rb', line 26

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