Notification refactoring
This commit is contained in:
parent
f7859ec1ed
commit
7713f7fefb
7 changed files with 55 additions and 28 deletions
|
@ -27,7 +27,6 @@ class Admin::UsersController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
if @admin_user.save
|
||||
Notify.new_user_email(@admin_user, params[:user][:password]).deliver
|
||||
format.html { redirect_to [:admin, @admin_user], notice: 'User was successfully created.' }
|
||||
format.json { render json: @admin_user, status: :created, location: @admin_user }
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue