palkan / anyway_config

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

load whole config when no environmental keys present in Rails config YML #67

Closed progapandist closed 4 years ago

progapandist commented 4 years ago

What is the purpose of this pull request?

Load configuration in Rails when no "environmental" top keys are present in the config/my_gem.yml

What changes did you make? (overview)

Сheck if the YML contains top-level keys that correspond to Rails environments

Checklist

progapandist commented 4 years ago

@palkan — just implemented your suggestions and added more tests. also updated CHANGELOG and README. LMK 🙏

palkan commented 4 years ago

Thanks!