Chris@0: #-- Chris@0: # Copyright (c) 2004-2006 David Heinemeier Hansson Chris@0: # Chris@0: # Permission is hereby granted, free of charge, to any person obtaining Chris@0: # a copy of this software and associated documentation files (the Chris@0: # "Software"), to deal in the Software without restriction, including Chris@0: # without limitation the rights to use, copy, modify, merge, publish, Chris@0: # distribute, sublicense, and/or sell copies of the Software, and to Chris@0: # permit persons to whom the Software is furnished to do so, subject to Chris@0: # the following conditions: Chris@0: # Chris@0: # The above copyright notice and this permission notice shall be Chris@0: # included in all copies or substantial portions of the Software. Chris@0: # Chris@0: # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, Chris@0: # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF Chris@0: # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND Chris@0: # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE Chris@0: # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION Chris@0: # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION Chris@0: # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Chris@0: #++ Chris@0: Chris@0: require 'pagination' Chris@0: require 'pagination_helper' Chris@0: Chris@0: ActionController::Base.class_eval do Chris@0: include ActionController::Pagination Chris@0: end Chris@0: Chris@0: ActionView::Base.class_eval do Chris@0: include ActionView::Helpers::PaginationHelper Chris@0: end