diff options
Diffstat (limited to 'lib/puppet/rails.rb')
-rw-r--r-- | lib/puppet/rails.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/puppet/rails.rb b/lib/puppet/rails.rb index 6664d8bac..b68e7d352 100644 --- a/lib/puppet/rails.rb +++ b/lib/puppet/rails.rb @@ -9,7 +9,7 @@ module Puppet::Rails # This global init does not work for testing, because we remove # the state dir on every test. unless ActiveRecord::Base.connected? - Puppet.config.use(:main) + Puppet.config.use(:main, :rails, :puppetmasterd) ActiveRecord::Base.logger = Logger.new(Puppet[:railslog]) ActiveRecord::Base.allow_concurrency = true @@ -61,13 +61,6 @@ module Puppet::Rails if Puppet[:dbmigrate] migrate() end - - # For now, we have to use :puppet, too, since non-puppetmasterd processes - # (including testing) put the logdir in :puppet, not in :puppetmasterd. - Puppet.config.use(:rails, :main, :puppetmasterd) - - # This has to come after we create the logdir with the :use above. - ActiveRecord::Base.logger = Logger.new(Puppet[:railslog]) end # Migrate to the latest db schema. |