README.md in rails-env-0.2.0 vs README.md in rails-env-0.3.0
- old
+ new
@@ -34,9 +34,17 @@
end
```
Looks dumb, but you don't have to use the long `Rails.configuration` or assign it to a local variable. This is useful when you're extracting out things to initializers.
+To match all environments, use `:any`.
+
+```ruby
+Rails.env.on(:any) do |config|
+ # Do something with config
+end
+```
+
## Contributing
1. Fork it ( https://github.com/fnando/rails-env/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)