summaryrefslogtreecommitdiff
path: root/users/app/models/signup_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/models/signup_service.rb')
-rw-r--r--users/app/models/signup_service.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/users/app/models/signup_service.rb b/users/app/models/signup_service.rb
new file mode 100644
index 0000000..f316ca9
--- /dev/null
+++ b/users/app/models/signup_service.rb
@@ -0,0 +1,9 @@
+class SignupService
+
+ def register(attrs)
+ User.create(attrs).tap do |user|
+ Identity.create_for user
+ end
+ end
+
+end