Sha256: e4940bdd8fcddc361304cc7d2f512cce3dce850b86680b791ae78f92fbb7760c
Contents?: true
Size: 670 Bytes
Versions: 16
Compression:
Stored size: 670 Bytes
Contents
module Workarea module Api module Storefront class AccountsController < Api::Storefront::ApplicationController def show end def create @user = User.create!(user_params) Workarea::Storefront::AccountMailer .creation(@user.id.to_s) .deliver_later @authentication_token = @user.authentication_tokens.create! end def update current_user.update_attributes!(user_params) render :show end private def user_params params.permit(:email, :password, :first_name, :last_name) end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems