Sha256: f9c9d6bdf3e88fb661f202957cccbc06317a6b5c7a17638ab697a4a75ca76834

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

require 'rails/engine'
require 'geared_pagination/controller'

class GearedPagination::Engine < ::Rails::Engine
  initializer :geared_pagination do |app|
    ActiveSupport.on_load :action_controller do
      ActionController::Base.send :include, GearedPagination::Controller
    end
  end

  if GearedPagination.rails_7_1?
    initializer "geared_pagination.deprecator" do |app|
      app.deprecators[:geared_pagination] = GearedPagination.deprecator
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geared_pagination-1.2.0 lib/geared_pagination/engine.rb