Force manual sync when wrapping fragment/owner.

pull/1225/head
Rick Carlino 2019-06-07 11:48:43 -05:00
parent 631964dff8
commit 669ac48355
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ module FarmEvents
raise TRANSACTION_REQUIRED
end
create_fragment_for(owner)
owner
owner.manually_sync!
end
def handle_body_field

View File

@ -22,7 +22,7 @@ module Regimens
inputs[:regimen_items].map! do |i|
RegimenItem.new(i)
end
wrap_fragment_with(Regimen.create!(inputs.except(:body))).manually_sync!
wrap_fragment_with(Regimen.create!(inputs.except(:body)))
end
end
end