Skip to content

Commit

Permalink
Merge pull request #246 from thewatts/nw-fix-spring-config
Browse files Browse the repository at this point in the history
Fix load error when using Spring w/ custom config
  • Loading branch information
bkeepers committed Mar 11, 2016
2 parents 8fa4c4d + f796940 commit 1c60be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dotenv/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Watch all loaded env files with Spring
begin
require "spring/watcher"
require "spring/commands"
ActiveSupport::Notifications.subscribe(/^dotenv/) do |*args|
event = ActiveSupport::Notifications::Event.new(*args)
Spring.watch event.payload[:env].filename if Rails.application
Expand Down

0 comments on commit 1c60be7

Please sign in to comment.