From 7cdb14e2a6584eb838945b00fe2840b3e8c211e3 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 22 Jan 2013 11:26:15 -0800 Subject: More minor cleanup of tickets controller --- help/app/controllers/tickets_controller.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'help') diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb index 3ccebb3..bab795a 100644 --- a/help/app/controllers/tickets_controller.rb +++ b/help/app/controllers/tickets_controller.rb @@ -21,10 +21,9 @@ class TicketsController < ApplicationController @ticket.email = current_user.email if logged_in? and current_user.email flash[:notice] = 'Ticket was successfully created.' if @ticket.save - if !logged_in? - # cannot set this until ticket has been saved, as @ticket.id will not be set - flash[:notice] += " " + t(:access_ticket_text, :full_url => request.protocol + request.host_with_port + ticket_path(@ticket.id)) - end + + # cannot set this until ticket has been saved, as @ticket.id will not be set + flash[:notice] += " " + t(:access_ticket_text, :full_url => request.protocol + request.host_with_port + ticket_path(@ticket.id)) if !logged_in? respond_with(@ticket) end -- cgit v1.2.3