diff options
author | Azul <azul@leap.se> | 2013-07-19 16:02:02 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-24 10:56:45 +0200 |
commit | d70c5796a2989b7b43f7e287899fb1394ae28280 (patch) | |
tree | daeabe5bdcc2386a201d88d838b4b1e387dd9ee3 /users/app/models/signup_service.rb | |
parent | c0527cc18788fc60180d9293a546c93e6a77b788 (diff) |
separate signup and settings service objects for user
Diffstat (limited to 'users/app/models/signup_service.rb')
-rw-r--r-- | users/app/models/signup_service.rb | 9 |
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 |