https://github.com/elia/route-deprecations
Deprecate your routes with ease!
https://github.com/elia/route-deprecations
Last synced: 5 months ago
JSON representation
Deprecate your routes with ease!
- Host: GitHub
- URL: https://github.com/elia/route-deprecations
- Owner: elia
- License: mit
- Created: 2012-08-02T21:05:21.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-08-02T21:57:27.000Z (almost 14 years ago)
- Last Synced: 2024-12-28T03:51:59.678Z (over 1 year ago)
- Language: Ruby
- Homepage: http://elia.github.com/route-deprecations/
- Size: 152 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RouteDeprecations
Ever tried to migrate a legacy rails app that featured the dreaded _catch-all_ route?
```ruby
map.connect ':controller/:action' # ouch!
```
Well with this gem it can be transformed to this:
```ruby
map.connect ':controller/:action', :deprecated => true
```
obtaining nice deprecation messages (of course you can use `:deprecated => true` on any route you want)!
**protip:** [setup exception notifier](https://gist.github.com/c0eb3b5015d919e909a2) to send you a mail each time a deprecation is raised in production)
## Installation
Add this line to your application's Gemfile (if you don't use bundler on rails 2 [setup it now](http://gembundler.com/rails23.html)):
gem 'route-deprecations'
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request