Sha256: 15511aecee54b5ab5927d532f22b1ad798480aedb53128323e21387744ede344

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery
  before_filter :slowajaxload
  ajax_pagination :pagination => 'menu'
  #ajax_pagination :pagination => 'sdf', :partial => {:template => "pages/readme"}
  def slowajaxload
    if params[:pagination] && Rails.env == "test"
      sleep(0.5)
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ajax_pagination-0.2.0 spec/rails_app/app/controllers/application_controller.rb