Skip to content
Browse files

Start generation

  • Loading branch information...
1 parent 640cec9 commit e279270c848bc0a0c25f5c8d7370f19979b8ca39 @wycats committed
Showing with 16 additions and 1 deletion.
  1. +16 −0 lib/tasks/generate.rake
  2. +0 −1 vendor/rails/actionpack/rails-simple-benches
View
16 lib/tasks/generate.rake
@@ -0,0 +1,16 @@
+task :generate => :environment do
+ klass = RailsDocs::Namespace.new(YARD::Registry.at("ActionController::Base"))
+ @class_methods = klass.public_methods(:class)
+ @instance_methods = klass.public_methods(:instance)
+
+ session = ActionDispatch::Integration::Session.new(Rails.application)
+
+ FileUtils.mkdir_p("#{Rails.public_path}/modules")
+
+ @class_methods.each do |method|
+ session.get("/modules/#{method.path}")
+ File.open("#{Rails.public_path}/modules/#{method.path}", "w") do |file|
+ files.puts session.response.body
+ end
+ end
+end
1 vendor/rails/actionpack/rails-simple-benches
@@ -1 +0,0 @@
-Subproject commit 5d0d087dff63d46bf16e8ed247961fef9a2f98fb

0 comments on commit e279270

Please sign in to comment.
Something went wrong with that request. Please try again.