Module: DataMapper::Resource::ClassMethods

Defined in:
lib/mack-data_mapper/paginator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#paginate(options = {}, query_options = {}) ⇒ Object

:nodoc:



45
46
47
48
# File 'lib/mack-data_mapper/paginator.rb', line 45

def paginate(options = {}, query_options = {})
  paginator = Mack::Database::Paginator.new(self, options, query_options)
  paginator.paginate
end