def limit_page page = nil, options = {}
      if page.is_a?( Hash )
        options = page
      else
        options[:page] = page.to_i
      end

      options[:page] = options[:page].to_i > 0 ? options[:page] : DataMapper::Paginator.default[:page]
      options[:limit] = options[:limit].to_i || DataMapper::Paginator.default[:limit]
      options[:offset] = options[:limit] * ( options[:page] - 1 )
      options[:order] = options[:order] || DataMapper::Paginator.default[:order]
      limit options
    end
def limit_page page = nil, options = {}
      if page.is_a?( Hash )
        options = page
      else
        options[:page] = page.to_i
      end

      options[:page] = options[:page].to_i > 0 ? options[:page] : DataMapper::Paginator.default[:page]
      options[:limit] = options[:limit].to_i || DataMapper::Paginator.default[:limit]
      options[:offset] = options[:limit] * ( options[:page] - 1 )
      options[:order] = options[:order] || DataMapper::Paginator.default[:order]
      limit options
    end
Limit results by page.

 @param [Integer, Hash] page
 @param [Hash] options
 @return [Collection]