Deprecate your routes with ease!
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
README.md
Rakefile
route-deprecations.gemspec

README.md

RouteDeprecations

Ever tried to migrate a legacy rails app that featured the dreaded catch-all route?

map.connect ':controller/:action' # ouch!

Well with this gem it can be transformed to this:

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 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):

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