Instiki 0.17.2: Security Release
This release upgrades Instiki to Rails 2.3.4, which patches two security holes in Rails. See http://weblog.rubyonrails.org/2009/9/4/ruby-on-rails-2-3-4 There are also some new features, and the usual boatload of bugfixes. See the CHANGELOG for details.
This commit is contained in:
parent
34c4306867
commit
4bdf703ab2
211 changed files with 3959 additions and 1325 deletions
7
vendor/rails/railties/lib/tasks/routes.rake
vendored
7
vendor/rails/railties/lib/tasks/routes.rake
vendored
|
@ -1,6 +1,7 @@
|
|||
desc 'Print out all defined routes in match order, with names.'
|
||||
desc 'Print out all defined routes in match order, with names. Target specific controller with CONTROLLER=x.'
|
||||
task :routes => :environment do
|
||||
routes = ActionController::Routing::Routes.routes.collect do |route|
|
||||
all_routes = ENV['CONTROLLER'] ? ActionController::Routing::Routes.routes.select { |route| route.defaults[:controller] == ENV['CONTROLLER'] } : ActionController::Routing::Routes.routes
|
||||
routes = all_routes.collect do |route|
|
||||
name = ActionController::Routing::Routes.named_routes.routes.index(route).to_s
|
||||
verb = route.conditions[:method].to_s.upcase
|
||||
segs = route.segments.inject("") { |str,s| str << s.to_s }
|
||||
|
@ -14,4 +15,4 @@ task :routes => :environment do
|
|||
routes.each do |r|
|
||||
puts "#{r[:name].rjust(name_width)} #{r[:verb].ljust(verb_width)} #{r[:segs].ljust(segs_width)} #{r[:reqs]}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue