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

Read environment variables #108

Closed
stefanahman opened this issue Apr 28, 2015 · 2 comments · Fixed by #125
Closed

Read environment variables #108

stefanahman opened this issue Apr 28, 2015 · 2 comments · Fixed by #125
Labels
Milestone

Comments

@stefanahman
Copy link

Hi, I wonder if it is possible to do the following:

SETTINGS_I_LIKE_CATS="true" be rails c

and then recover the variable by:

Settings.i_like_cats # => "true"
@fredwu
Copy link
Member

fredwu commented Aug 6, 2015

It is certainly possible, would you or anyone like to have a crack and submit a pull request? ;)

@vinceve
Copy link

vinceve commented Oct 3, 2015

I would like to take a look at this. Wouldn't it be better to have some kind of prefix for env variables? For example:

Settings.env.i_like_cats # => "true"

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

Successfully merging a pull request may close this issue.

4 participants