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