lib/shirinji-rails/railtie.rb in shirinji-rails-0.0.3 vs lib/shirinji-rails/railtie.rb in shirinji-rails-0.0.4

- old
+ new

@@ -12,15 +12,17 @@ def init! return unless (conf = config_path) map = eval File.read(conf) - config.shirinji.resolver = Shirinji::Resolver.new(map) + resolver = Shirinji::Resolver.new(map) ActiveSupport::Reloader.to_prepare do map = eval File.read(conf) - ::Rails.application.config.shirinji.resolver.reload(map) + resolver.reload(map) end + + config.shirinji.resolver = resolver end private def config_path