lib/rom/sql/plugin/pagination.rb in rom-sql-0.6.1 vs lib/rom/sql/plugin/pagination.rb in rom-sql-0.7.0.beta1
- old
+ new
@@ -2,10 +2,10 @@
module SQL
module Plugin
module Pagination
class Pager
include Options
- include Equalizer.new(:dataset, :options)
+ include Dry::Equalizer(:dataset, :options)
option :current_page, reader: true, default: 1
option :per_page, reader: true
attr_reader :dataset