Closed maximderbin closed 7 years ago
Why? If we are using rom-http with rom-sql associate and have key renaming, associate will blow up trying to find primary_key in tuple as Relation#primary_key returns renamed key name but tuple has original
rom-http
rom-sql
Look into source here: https://github.com/rom-rb/rom-sql/blob/master/lib/rom/sql/association/many_to_one.rb#L51
This PR Adding transformation to Relation#insert and Relation#update
Thanks @maximderbin
@AMHOL thanks for merging 👍
Why? If we are using
rom-http
withrom-sql
associate and have key renaming, associate will blow up trying to find primary_key in tuple as Relation#primary_key returns renamed key name but tuple has originalLook into source here: https://github.com/rom-rb/rom-sql/blob/master/lib/rom/sql/association/many_to_one.rb#L51
This PR Adding transformation to Relation#insert and Relation#update