lib/rom/http/relation.rb in rom-http-0.8.0 vs lib/rom/http/relation.rb in rom-http-0.9.0
- old
+ new
@@ -1,13 +1,13 @@
# frozen_string_literal: true
-require 'rom/initializer'
+require "rom/initializer"
-require 'rom/http/types'
-require 'rom/http/attribute'
-require 'rom/http/schema'
-require 'rom/http/schema/dsl'
+require "rom/http/types"
+require "rom/http/attribute"
+require "rom/http/schema"
+require "rom/http/schema/dsl"
module ROM
module HTTP
# HTTP-specific relation extensions
#
@@ -22,10 +22,11 @@
option :output_schema, default: -> { schema.to_output_hash }
forward :with_headers, :add_header, :with_options,
:with_base_path, :with_path, :append_path,
- :with_request_method, :with_params, :add_params
+ :with_request_method, :with_query_params, :add_query_params,
+ :with_body_params, :add_body_params
def primary_key
schema.primary_key_name
end