Sha256: 6536a468aefe2d753a3a6da1d77a31f408ab93ade1b8e842e72b44649354cbcf

Contents?: true

Size: 393 Bytes

Versions: 80

Compression:

Stored size: 393 Bytes

Contents

class FooController < ActionController::Base
	def new
		render :text => 'hello world'
	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

80 entries across 80 versions & 8 rubygems

Version Path
rockdog-passenger-0.0.1 test/stub/rails_apps/foobar/app/controllers/foo_controller.rb
passenger-4.0.30 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.29 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.28 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.27 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.26 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.25 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.24 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.23 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.21 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.20 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.19 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.18 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.17 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.16 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.14 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.13 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.10 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.8 test/stub/rails2.3/app/controllers/foo_controller.rb
passenger-4.0.7 test/stub/rails2.3/app/controllers/foo_controller.rb