We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0004b36 commit dab8c5eCopy full SHA for dab8c5e
lib/jsonapi/utils/response/formatters.rb
@@ -263,6 +263,7 @@ def get_source_relationship(options)
263
# @api private
264
def result_options(records, options)
265
{}.tap do |data|
266
+ data[:meta] = data.fetch(:meta, {}).merge(options.fetch(:meta, {}))
267
if JSONAPI.configuration.default_paginator != :none &&
268
JSONAPI.configuration.top_level_links_include_pagination
269
data[:pagination_params] = pagination_params(records, options)
0 commit comments