lib/restpack_serializer/serializable/paging.rb in restpack_serializer-0.2.11 vs lib/restpack_serializer/serializable/paging.rb in restpack_serializer-0.2.12

- old
+ new

@@ -1,10 +1,10 @@ module RestPack::Serializer::Paging extend ActiveSupport::Concern module ClassMethods def page(params = {}, scope = nil) - page_with_options RestPack::Serializer::Options.new(self.model_class, params, scope) + page_with_options RestPack::Serializer::Options.new(self, params, scope) end def page_with_options(options) page = options.scope_with_filters.paginate( page: options.page,