Sha256: 92e9bbc44aee6aa8366223829cb48f76f577cf9363428e4cc967d4244d3a40c8
Contents?: true
Size: 797 Bytes
Versions: 4
Compression:
Stored size: 797 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 initializer 'ajax_pagination.redirect_filter' do if AjaxPagination.redirect_after_filter == true ActiveSupport.on_load(:action_controller) do after_filter :ajax_pagination_redirect end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems