Class: ParamsTransformer::ValueParser::BelongsTo
- Inherits:
-
ParamsTransformer::ValueParser
- Object
- ParamsTransformer::ValueParser
- ParamsTransformer::ValueParser::BelongsTo
- Includes:
- Relationship
- Defined in:
- lib/params_transformer/value_parser/belongs_to.rb
Instance Attribute Summary
Attributes included from Relationship
Attributes inherited from ParamsTransformer::ValueParser
Instance Method Summary collapse
Methods included from Relationship
Methods inherited from ParamsTransformer::ValueParser
Constructor Details
This class inherits a constructor from ParamsTransformer::ValueParser
Instance Method Details
#parse ⇒ Object
6 7 8 9 |
# File 'lib/params_transformer/value_parser/belongs_to.rb', line 6 def parse return input_value unless input_value.present? transformer.new(input_value).transform end |