lib/dotenv/rails.rb in dotenv-rails-2.2.2 vs lib/dotenv/rails.rb in dotenv-rails-2.3.0
- old
+ new
@@ -20,10 +20,10 @@
require "spring/commands"
ActiveSupport::Notifications.subscribe(/^dotenv/) do |*args|
event = ActiveSupport::Notifications::Event.new(*args)
Spring.watch event.payload[:env].filename if Rails.application
end
-rescue LoadError
+rescue LoadError, ArgumentError
# Spring is not available
end
module Dotenv
# Dotenv Railtie for using Dotenv to load environment from a file into