Sha256: 0cc60630de129872474647a1e62899e87ae3e3c083a2b4ef573c5e3b441db6e3

Contents?: true

Size: 262 Bytes

Versions: 10

Compression:

Stored size: 262 Bytes

Contents

# -*- encoding : utf-8 -*-
module LoyalCore
  # 处理所有ajax请求
  class AjaxController < ::LoyalCore::ApplicationController
    before_filter :require_request_xhr!

    protected

    # 需要是ajax 请求
    def require_request_xhr!

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
loyal_core-0.0.11 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.10 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.8 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.7 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.6 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.5 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.4 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.3 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.2 app/controllers/loyal_core/ajax_controller.rb
loyal_core-0.0.1 app/controllers/loyal_core/ajax_controller.rb