The example code doesn't work -- config.ENV should just be ENV

When you import from 'your-app/config/environment' you get the ENV object back. . . not a "config" object, so you should just import it as ENV and use it directly.
Merge pull request #2000 from kweinber/patch-1

The example code doesn't work -- config.ENV should just be ENV