Skip to content

Commit

Permalink
Merge pull request #670 from thearifismail/outofdate_transformation_s…
Browse files Browse the repository at this point in the history
…pecs

[V2V] Update transformation_mapping specs to deal with Lan validation changes
  • Loading branch information
gtanzillo authored Sep 19, 2019
2 parents a01e77c + 0fd270e commit d0e923a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/transformation_mappings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Api
class TransformationMappingsController < BaseController
def create_resource(_type, _id, data = {})
raise "Must specify transformation_mapping_items" unless data["transformation_mapping_items"]
TransformationMapping.new(data.except("transformation_mapping_items")).tap do |mapping|
TransformationMapping.create(data.except("transformation_mapping_items")).tap do |mapping|
mapping.transformation_mapping_items = create_mapping_items(data["transformation_mapping_items"], mapping)
mapping.save!
end
Expand Down

0 comments on commit d0e923a

Please sign in to comment.