Class: Spree::Account::Create
- Inherits:
-
Object
- Object
- Spree::Account::Create
- Includes:
- ServiceModule::Base
- Defined in:
- app/services/spree/account/create.rb
Instance Method Summary collapse
Methods included from ServiceModule::Base
Instance Method Details
#call(user_params: {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/services/spree/account/create.rb', line 6 def call(user_params: {}) user = Spree.user_class.new(user_params) if user.save success(user) else failure(user) end end |