Revision 916c5290
Added by Dominic Cleal almost 8 years ago
.gitignore | ||
---|---|---|
10 | 10 |
test/dummy/.sass-cache |
11 | 11 |
.ruby-version |
12 | 12 |
.ruby-gemset |
13 |
public/assets/ |
lib/foreman_docker/engine.rb | ||
---|---|---|
9 | 9 |
# Inherit from the Rails module of the parent app (Foreman), not the plugin. |
10 | 10 |
# Thus, inherits from ::Rails::Engine and not from Rails::Engine |
11 | 11 |
class Engine < ::Rails::Engine |
12 |
engine_name 'foreman_docker' |
|
13 |
|
|
12 | 14 |
initializer 'foreman_docker.load_app_instance_data' do |app| |
13 | 15 |
app.config.paths['db/migrate'] += ForemanDocker::Engine.paths['db/migrate'].existent |
14 | 16 |
end |
... | ... | |
18 | 20 |
end |
19 | 21 |
|
20 | 22 |
initializer 'foreman_docker.configure_assets', :group => :assets do |
21 |
SETTINGS[:foreman_docker_engine] =
|
|
23 |
SETTINGS[:foreman_docker] = |
|
22 | 24 |
{ :assets => { :precompile => ['foreman_docker/terminal.css', |
23 | 25 |
'foreman_docker/image_step.js'] } } |
24 | 26 |
end |
Also available in: Unified diff
fixes #8100 - make engine and asset precompilation name consistent
Ensures that when precompiling, both the assets and the manifest end up under
'foreman_docker' rather than one ending up under 'foreman_docker_engine'. Not
much functional effect except it keeps everything in one dir.