Class: Masks::Access::ActorSignup
- Inherits:
-
Object
- Object
- Masks::Access::ActorSignup
- Includes:
- Masks::Access
- Defined in:
- app/models/masks/access/actor_signup.rb
Overview
Access class for actor.signup
.
This access class creates a new actor.
Instance Method Summary collapse
Instance Method Details
#signup(**opts) ⇒ Object
13 14 15 16 17 18 |
# File 'app/models/masks/access/actor_signup.rb', line 13 def signup(**opts) actor = config.build_actor(session, **opts.slice(:nickname, :email)) actor.password = opts[:password] actor.save if actor.valid? actor end |