evrone/quiet_assets

Why use ENV[key] rather than a class variable?

justin808 opened this issue · 1 comments

https://github.com/evrone/quiet_assets/blob/master/lib%2Fquiet_assets.rb#L23

Could you use a class variable rather than using the ENV Hash?

dgynn commented

@justin808 In this context, the env is a Rack "environment" and not a Ruby ENV to access environment variables.
The Rack env is a Hash.
http://www.rubydoc.info/github/rack/rack/master/file/SPEC