lib/sinatra/named_routes.rb in sinatra-named-routes-subdomains-0.1.4 vs lib/sinatra/named_routes.rb in sinatra-named-routes-subdomains-0.1.5

- old
+ new

@@ -38,11 +38,11 @@ alias :to :uri alias :url :uri end # Maps a path to name. - def map(name, path) - NamedRoutes.routes[name] = Route.new path + def map(name, path, params = {}) + NamedRoutes.routes[name] = Route.new path, params end alias :bind :map private \ No newline at end of file