DEV Community

Discussion on: Auto-reload `config_for` files in Rails

Collapse
 
colindean profile image
Colin Dean

The shared key wasn't working for me on a Rails 5 app. I needed to use YAML anchors as mentioned in this SO answer.

shared: &shared
  foo: bar

development:
  <<: *shared
testing:
  <<: *shared
production:
  <<: *shared
Enter fullscreen mode Exit fullscreen mode
Collapse
 
lxxxvi profile image
Mario

Thank you @colindean , that's useful information!

The shared key was introduced in PR #37913 which was in the early stages of Rails 6.