Class: User::SignUp
- Inherits:
-
UserPlane::Command
- Object
- Imperator::Command
- UserPlane::Command
- User::SignUp
- Includes:
- ActiveModel::Validations::Callbacks
- Defined in:
- app/models/user/sign_up.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from UserPlane::Command
#perform, #perform!, #perform_validations
Instance Method Details
#account ⇒ Object
29 30 31 |
# File 'app/models/user/sign_up.rb', line 29 def account @account ||= new_account end |
#sign_up_with(sign_up_strategy) ⇒ Object
24 25 26 27 |
# File 'app/models/user/sign_up.rb', line 24 def sign_up_with sign_up_strategy @identity = sign_up_strategy.build_identity(self) if identity.nil? self end |