Skip to content
New issue

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

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

Already on GitHub? # to your account

Added extra sources in initializer #366

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Nuzair46
Copy link

@Nuzair46 Nuzair46 commented Oct 24, 2024

Fixes #124

Adds ability to set extra_sources at initializer level.

Config.setup do |config|
  config.extra_sources = ['extra_settings']
end

@Nuzair46 Nuzair46 changed the title Added extra sources Added extra sources in initializer Oct 24, 2024

```ruby
Config.setup do |config|
config.extra_sources = ['extra_settings']
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

It might be interesting to allow it to be any "source-like" implementation, rather than just a filename within the config root.

config.add_source! will then take care of either attaching it as a file source, or as a custom source.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it. will make the changes

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Extra config sources defined in initializer
2 participants