quiet_assets icon indicating copy to clipboard operation
quiet_assets copied to clipboard

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

Open justin808 opened this issue 10 years ago • 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?

justin808 avatar Mar 12 '16 23:03 justin808

@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

dgynn avatar Jul 06 '16 15:07 dgynn