Sha256: 1326750181931e12525030402b525d39212615009000de1c5c44e04fd8166a27

Contents?: true

Size: 557 Bytes

Versions: 1

Compression:

Stored size: 557 Bytes

Contents

module AjaxPagination
  class Engine < ::Rails::Engine
    initializer 'ajax_pagination.actionpack_additions' do
      ActiveSupport.on_load(:action_controller) do
        include AjaxPagination::ControllerAdditions
      end
      ActiveSupport.on_load(:action_view) do
        include AjaxPagination::HelperAdditions
      end
    end

    initializer 'ajax_pagination.javascript_warnings' do
      if AjaxPagination.warnings.nil? # if not defined
        AjaxPagination.warnings = Rails.env == 'development' # default setting
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ajax_pagination-0.2.0 lib/ajax_pagination/rails.rb