Sha256: 5f0ac40119bd82046ba0b3941867a2b7c3a0d6220dcb4777420c3a7311d2ed83
Contents?: true
Size: 802 Bytes
Versions: 2
Compression:
Stored size: 802 Bytes
Contents
# Copyright (c) 2012 Ronald Ping Man Chan # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ajax_pagination-0.6.5 | lib/ajax_pagination/rails.rb |
ajax_pagination-0.6.4 | lib/ajax_pagination/rails.rb |