Skip to content

Commit e39047f

Browse files
author
Rafael Mendonça França
committed
Merge pull request #289 from morgoth/add-secrets-file-to-watched-by-default
Doesn't reload after secrets.yml changes Conflicts: CHANGELOG.md
2 parents c4fcb63 + 4937e32 commit e39047f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Next Version
22

33
* Accept -e and --environment options for `rails console`.
4+
* Add `config/secrets.yml` file to watched for changes by default. Issue #289.
45

56
## 1.1.3
67

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)