lib/commercelayer/resource.rb in commercelayer-0.1.0 vs lib/commercelayer/resource.rb in commercelayer-0.2.0
- old
+ new
@@ -1,8 +1,11 @@
require "jsonapi/consumer"
require 'yaml'
module Commercelayer
+
+ JSONAPI::Consumer::Paginating::Paginator.page_param = "page[number]"
+
class Resource < JSONAPI::Consumer::Resource
# self.connection_options = {} # Faraday connection options
# self.json_key_format = :dasherized_key # (default: underscored_key)
# self.route_format = :dasherized_route # (default: underscored_route)
# self.site = 'http://uashmama.commercelayer.test/api/'