app/controllers/clearance/users_controller.rb in thoughtbot-clearance-0.6.4 vs app/controllers/clearance/users_controller.rb in thoughtbot-clearance-0.6.5
- old
+ new
@@ -11,11 +11,13 @@
def create
@user = ::User.new params[:user]
if @user.save
::ClearanceMailer.deliver_confirmation @user
- flash[:notice] = "You will receive an email within the next few minutes. " <<
- "It contains instructions for confirming your account."
+ flash[:notice] = translate(:deliver_confirmation,
+ :scope => [:clearance, :controllers, :users],
+ :default => "You will receive an email within the next few minutes. " <<
+ "It contains instructions for confirming your account.")
redirect_to url_after_create
else
render :template => 'users/new'
end
end