Sha256: 1b856f6f818bb341c4a49788f9a035ec77cdb8a0d3fc9f6b4d37bb8837890b9b
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery before_filter :slowajaxload ajax_respond :section_id => "global", :render => { :layout => "ajax" } def slowajaxload if (!ajax_section.nil?) && Rails.env == "test" delay = 0 delay = ENV['AJAX_DELAY'] if ENV['AJAX_DELAY'] sleep(delay.to_f) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ajax_pagination-0.6.1 | spec/rails_app/app/controllers/application_controller.rb |
ajax_pagination-0.6.0 | spec/rails_app/app/controllers/application_controller.rb |