Took advantage of rails asset pipeline

pull/6827/head
Sebastian Schuster 12 years ago
parent f918774651
commit f726031403
  1. 2
      app/assets/javascripts/global_roles/global_roles.js
  2. 0
      app/assets/javascripts/global_roles/principal_roles.js
  3. 0
      app/assets/stylesheets/global_roles/global_roles.css
  4. 6
      lib/open_project/global_roles/engine.rb

@ -1,3 +1,5 @@
//= require global_roles/principal_roles
var global_roles = {
init: function(){
global_roles.toggle_forms_on_click();

@ -4,9 +4,9 @@ module OpenProject::GlobalRoles
config.autoload_paths += Dir["#{config.root}/lib/"]
#initializer 'global_roles.precompile_assets' do
# Rails.application.config.assets.precompile += %w(costs.css costs.js)
#end
initializer 'global_roles.precompile_assets' do
Rails.application.config.assets.precompile += %w(global_roles.css global_roles.js)
end
# adds our factories to factory girl's load path
initializer "global_roles.register_factories", :after => "factory_girl.set_factory_paths" do |app|

Loading…
Cancel
Save