Module: EPlat::Mapping::RequestBodyRoot

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/e_plat/mapping/request_body_root.rb

Instance Method Summary collapse

Instance Method Details

#include_root_in_request_body?(resource) ⇒ Boolean

<EPlat::Resource>

Returns:

  • (Boolean)


16
17
18
19
20
# File 'lib/e_plat/mapping/request_body_root.rb', line 16

def include_root_in_request_body?(resource) #<EPlat::Resource>
	return default_include_root_in_request_body(resource) if self.class.root_in_request_body.nil?

	self.class.root_in_request_body
end