Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created July 28, 2008 01:49
Show Gist options
  • Save methodmissing/2824 to your computer and use it in GitHub Desktop.
Save methodmissing/2824 to your computer and use it in GitHub Desktop.
unless Object.const_defined? 'WillPaginate'
module ActiveRecord
class Base
class << self
def paginate( options = {} )
find( :all, options.except( :page, :per_page ) )
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment