Sha256: 345487e7cf09d1a93d410c633ddadafccfb634cdd0e2e5e8818f729cd9215112

Contents?: true

Size: 282 Bytes

Versions: 11

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

module LightServiceExt
  module AroundActionExecuteExtension
    def execute(context)
      result = super(context.merge(invoked_action: self))

      context.merge!(result)
      context.fail! if result.errors.present?
      result
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
light-service-ext-0.1.10 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.9 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.8 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.7 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.6 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.5 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.4 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.3 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.2 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.1 lib/light-service-ext/around_action_execute_extension.rb
light-service-ext-0.1.0 lib/light-service-ext/around_action_execute_extension.rb