Add plug-in's public folder to core's

pull/6827/head
Hagen Schink 10 years ago
parent 0d3182db72
commit 65368dd466
  1. 6
      lib/open_project/costs/engine.rb

@ -175,6 +175,12 @@ module OpenProject::Costs
ActionView::Helpers::NumberHelper.send(:include, OpenProject::Costs::Patches::NumberHelperPatch)
end
# Initializer to combine this engines static assets with the static assets of the hosting site.
# Thanks to http://jbavari.github.io/blog/2013/10/26/rev-up-your-rails-engine-for-static-assets/
initializer "static assets" do |app|
app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
end
config.to_prepare do
# loading the class so that acts_as_journalized gets registered
VariableCostObject

Loading…
Cancel
Save