app/services/flexite/entry/update_service.rb in flexite-0.0.7 vs app/services/flexite/entry/update_service.rb in flexite-0.0.8
- old
+ new
@@ -20,10 +20,10 @@
protected
def failure
save_errors
- Result.new(success: false, endpoint: { status: 400 })
+ Result.new(success: false, endpoint: { action: :edit, status: 400 })
end
def success
Result.new(flash: { type: :success, message: 'Entry was updated!' })
end