Added asset precompilation to engine.rb

pull/6827/head
Sebastian Schuster 12 years ago
parent 869c4a3c15
commit 02f4fc3dbc
  1. 4
      lib/open_project/costs/engine.rb

@ -16,6 +16,10 @@ module OpenProject::Costs
config.autoload_paths += Dir["#{config.root}/lib/"]
initializer 'costs.precompile_assets' do
Rails.application.config.assets.precompile += %w(costs.css costs.js)
end
# adds our factories to factory girl's load path
initializer "costs.register_factories", :after => "factory_girl.set_factory_paths" do |app|
FactoryGirl.definition_file_paths << File.expand_path(self.root.to_s + '/spec/factories') if defined?(FactoryGirl)

Loading…
Cancel
Save