Sha256: ac12f3a6e3bbead2b9e1eb8436c011f71ddc720f0007413a0cbbc47cd38057a8

Contents?: true

Size: 392 Bytes

Versions: 28

Compression:

Stored size: 392 Bytes

Contents

class FooController < ActionController::Base
	def new
		render :text => 'front page'
	end
	
	def rails_env
		render :text => RAILS_ENV
	end
	
	def backtrace
		render :text => caller.join("\n")
	end
	
	def sleep_until_exists
		File.open("#{RAILS_ROOT}/waiting_#{params[:name]}", 'w')
		while !File.exist?("#{RAILS_ROOT}/#{params[:name]}")
			sleep 0.1
		end
		render :nothing => true
	end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
passenger-4.0.60 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.59 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.58 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.57 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.56 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.55 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.53 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.52 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.51 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.50 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.49 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.48 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.46 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.45 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.44 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.43 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.42 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.41 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.40 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.39 test/stub/rails2.3/app/controllers/foo_controller.rb