Skip to content

Commit 4937e32

Browse files
committed
Added config/secrets.yml file to watched by default.
This file is used by default in Rails 4.1.
1 parent cb0fb6f commit 4937e32

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Next release
2+
3+
* Add `config/secrets.yml` file to watched for changes by default. Issue #289.
4+
15
## 1.1.3
26

37
* The `rails runner` command no longer passes environment switches to

lib/spring/application.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ def preload
108108
if defined?(Rails) && Rails.application
109109
watcher.add Rails.application.paths["config/initializers"]
110110
watcher.add Rails.application.paths["config/database"]
111+
if secrets_path = Rails.application.paths["config/secrets"]
112+
watcher.add secrets_path
113+
end
111114
end
112115
end
113116

0 commit comments

Comments
 (0)