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