Class: Kablam::Engine

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

Class Method Summary collapse

Class Method Details

.mounted_pathObject



3
4
5
6
7
8
# File 'lib/kablam/engine.rb', line 3

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