stackjlei
stackjlei

Reputation: 10035

what is the ENV in a rails app?

I'm looking at someone else's app that has a ENV variable in a lot of files. I know that it's an obj because it's using [...] to locate things but I couldn't find anything with def ENV or ENV = with fuzzy search. Is this a Rails specific object that's everywhere and you can just throw things in?

Upvotes: 3

Views: 99

Answers (1)

Mat
Mat

Reputation: 2184

ENV it's not Rails specific, it's Ruby object to access the system environment variables.

Look the documentation here

Upvotes: 3

Related Questions