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