palkan / anyway_config

Configuration library for Ruby gems and applications
MIT License
778 stars 52 forks source link

Check Rails.env for current environment when ENV vars weren't set #128

Closed stiig closed 1 year ago

stiig commented 1 year ago

What is the purpose of this pull request?

During migrations without setting RAILS_ENV or RACK_ENV rails behaves like running in development environment but anyway_config doesn't reflect this

What changes did you make? (overview)

Add safe checking Rails.env

Is there anything you'd like reviewers to focus on?

Checklist

palkan commented 1 year ago

Thanks!