Class: JsonApiable::ParamsParser::DataParams
- Inherits:
-
Object
- Object
- JsonApiable::ParamsParser::DataParams
- Defined in:
- lib/json_apiable/params_parser.rb
Class Method Summary collapse
Class Method Details
.build(params, attributes, relationships) ⇒ Object
6 7 8 9 10 |
# File 'lib/json_apiable/params_parser.rb', line 6 def self.build(params, attributes, relationships) params.require(:data).permit(:id, :type, attributes: attributes, relationships: relationships) end |