Class: ForemanRemoteExecution::Engine

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

Class Method Summary collapse

Class Method Details

.assets_to_precompileObject

Precompile any JS or CSS files under app/assets/ If requiring files from each other, list them explicitly here to avoid precompiling the same content twice.



10
11
12
13
14
15
16
17
# File 'lib/foreman_remote_execution/engine.rb', line 10

def self.assets_to_precompile
  assets = Dir.chdir(root) do
    Dir['app/assets/javascripts/**/*'].map do |f|
      f.split(File::SEPARATOR, 4).last
    end
  end
  assets << 'foreman_remote_execution/foreman_remote_execution.css'
end