Module: JsonApi::Parameters

Includes:
ActiveSupport::Inflector
Included in:
ActionController::Parameters
Defined in:
lib/jsonapi_parameters/version.rb,
lib/jsonapi_parameters/handlers.rb,
lib/jsonapi_parameters/parameters.rb,
lib/jsonapi_parameters/translator.rb,
lib/jsonapi_parameters/default_handlers/base_handler.rb,
lib/jsonapi_parameters/default_handlers/nil_relation_handler.rb,
lib/jsonapi_parameters/default_handlers/to_one_relation_handler.rb,
lib/jsonapi_parameters/default_handlers/to_many_relation_handler.rb

Defined Under Namespace

Modules: Handlers

Constant Summary collapse

VERSION =
'2.1.1'.freeze

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.ensure_underscore_translationObject

Returns the value of attribute ensure_underscore_translation.



6
7
8
# File 'lib/jsonapi_parameters/parameters.rb', line 6

def ensure_underscore_translation
  @ensure_underscore_translation
end

Instance Method Details

#jsonapify(params, naming_convention: :snake) ⇒ Object



6
7
8
# File 'lib/jsonapi_parameters/translator.rb', line 6

def jsonapify(params, naming_convention: :snake)
  jsonapi_translate(params, naming_convention: naming_convention)
end