Sha256: 0b9d1ebf87e96ed6fd4b75447e420ae7cd07fee7b5b9df277ab15944268dac27

Contents?: true

Size: 265 Bytes

Versions: 33

Compression:

Stored size: 265 Bytes

Contents

module Spree
  module Account
    class Update
      prepend Spree::ServiceModule::Base

      def call(user:, user_params: {})
        if user.update(user_params)
          success(user)
        else
          failure(user)
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/services/spree/account/update.rb
spree_core-4.10.0 app/services/spree/account/update.rb
spree_core-4.9.0 app/services/spree/account/update.rb
spree_core-4.8.3 app/services/spree/account/update.rb
spree_core-4.8.2 app/services/spree/account/update.rb
spree_core-4.7.3 app/services/spree/account/update.rb
spree_core-4.6.6 app/services/spree/account/update.rb
spree_core-4.5.5 app/services/spree/account/update.rb
spree_core-4.3.3 app/services/spree/account/update.rb
spree_core-4.4.1 app/services/spree/account/update.rb
spree_core-4.5.4 app/services/spree/account/update.rb
spree_core-4.6.5 app/services/spree/account/update.rb
spree_core-4.7.2 app/services/spree/account/update.rb
spree_core-4.7.1 app/services/spree/account/update.rb
spree_core-4.6.4 app/services/spree/account/update.rb
spree_core-4.7.0 app/services/spree/account/update.rb
spree_core-4.6.3 app/services/spree/account/update.rb
spree_core-4.6.2 app/services/spree/account/update.rb
spree_core-4.6.1 app/services/spree/account/update.rb
spree_core-4.6.0 app/services/spree/account/update.rb