Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails.root nil for config.before_configuration in Rails 4.1 #35

Closed
bpardee opened this issue Apr 3, 2014 · 3 comments
Closed

Rails.root nil for config.before_configuration in Rails 4.1 #35

bpardee opened this issue Apr 3, 2014 · 3 comments
Labels

Comments

@bpardee
Copy link

bpardee commented Apr 3, 2014

In Rails 4.1RC2, the value of Rails.root is nil in the config.before_configuration block so your railtie fails to configure. Maybe change to before_initialize?

See Shopify/shopify_app#71

@reidmorrison
Copy link
Owner

It has to be in 'config.before_configuration' since configuration files can contain encrypted passwords that have to be decrypted with SymmetricEncryption. Have to figure out some kind of workaround for this change

@bpardee
Copy link
Author

bpardee commented Apr 3, 2014

My config/database.yml works okay if I change it to before_initialize

@bpardee
Copy link
Author

bpardee commented Apr 7, 2014

Fixed via rails/rails@e1404ec. Hopefully this makes it into the 4.1 official release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants