Used more specific initializer step

pull/6827/head
Sebastian Schuster 11 years ago
parent 578d7fd59d
commit da7b2af159
  1. 2
      lib/open_project/global_roles/engine.rb

@ -60,7 +60,7 @@ module OpenProject::GlobalRoles
app.routes_reloader.paths.uniq! app.routes_reloader.paths.uniq!
end end
initializer :append_migrations do |app| initializer 'global_roles.append_migrations' do |app|
unless app.root.to_s.match root.to_s unless app.root.to_s.match root.to_s
config.paths["db/migrate"].expanded.each do |expanded_path| config.paths["db/migrate"].expanded.each do |expanded_path|
app.config.paths["db/migrate"] << expanded_path app.config.paths["db/migrate"] << expanded_path

Loading…
Cancel
Save