Sha256: ae81e8d5b3b14ac6b2a40e18130062f0a674070f86876bb23627d1a14cce3b7c

Contents?: true

Size: 243 Bytes

Versions: 4

Compression:

Stored size: 243 Bytes

Contents

require 'pjax'

module PjaxRails
  class Engine < ::Rails::Engine
    initializer "pjax_rails.add_controller" do
      ActiveSupport.on_load(:action_controller) do
        ::ApplicationController.send :include, Pjax
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pjax-rails-0.1.3 ./lib/pjax-rails.rb
pjax-rails-0.1.2 ./lib/pjax-rails.rb
pjax-rails-0.1.1 ./lib/pjax-rails.rb
pjax-rails-0.1 ./lib/pjax-rails.rb