Class: CollavreLinear::Engine

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

Constant Summary collapse

MOUNT_PATH =

Path this engine is mounted at in the host app (see the collavre_linear.routes initializer below). Because the engine is isolate_namespaced and detached, its own url_helpers generate engine-internal paths WITHOUT this prefix. Anything that needs a URL the host (or an external service like Linear) will actually reach must fold this prefix back in — pass it as script_name: to the engine url_helper.

"/linear"

Class Method Summary collapse

Class Method Details

.javascript_pathObject



17
18
19
# File 'lib/collavre_linear/engine.rb', line 17

def self.javascript_path
  root.join("app/javascript")
end

.stylesheet_pathObject



21
22
23
# File 'lib/collavre_linear/engine.rb', line 21

def self.stylesheet_path
  root.join("app/assets/stylesheets")
end