Created
August 7, 2010 21:05
-
-
Save btelles/513202 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Reporter #:nodoc: | |
module Routing #:nodoc: | |
module MapperExtensions | |
def reporter | |
@set.add_route("/reporter/:id", {:controller => "reports", :action => "show"}) | |
end | |
end | |
end | |
end | |
ActionController::Routing::RouteSet::Mapper.send :include, Reporter::Routing::MapperExtensions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment