From 0b04179be9e6e192a6d9b807db43cb18a7b2be16 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Tue, 2 Sep 2014 22:17:54 +0300 Subject: [PATCH] fix quotes on tickets --- app/controllers/admin/splashpages_controller.rb | 2 +- app/controllers/admin/tickets_controller.rb | 2 +- app/controllers/ticket_purchases_controller.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/admin/splashpages_controller.rb b/app/controllers/admin/splashpages_controller.rb index 20295865..fe06ae2c 100644 --- a/app/controllers/admin/splashpages_controller.rb +++ b/app/controllers/admin/splashpages_controller.rb @@ -35,7 +35,7 @@ module Admin if @splashpage.destroy redirect_to admin_conference_splashpage_path, notice: 'Splashpage was successfully destroyed.' else - redirect_to admin_conference_splashpage_path, alert: "A error prohibited this Splashpage from being destroyed: "\ + redirect_to admin_conference_splashpage_path, alert: 'A error prohibited this Splashpage from being destroyed: '\ "#{@splashpage.errors.full_messages.join('. ')}." end end diff --git a/app/controllers/admin/tickets_controller.rb b/app/controllers/admin/tickets_controller.rb index c90fe2cc..5920b759 100644 --- a/app/controllers/admin/tickets_controller.rb +++ b/app/controllers/admin/tickets_controller.rb @@ -40,7 +40,7 @@ module Admin notice: 'Ticket successfully destroyed.') else redirect_to(admin_conference_tickets_path(conference_id: @conference.short_title), - alert: "Ticket was successfully destroyed." \ + alert: 'Ticket was successfully destroyed.' \ "#{@ticket.errors.full_messages.join('. ')}.") end end diff --git a/app/controllers/ticket_purchases_controller.rb b/app/controllers/ticket_purchases_controller.rb index d15a5f1c..5f548d88 100644 --- a/app/controllers/ticket_purchases_controller.rb +++ b/app/controllers/ticket_purchases_controller.rb @@ -7,7 +7,7 @@ class TicketPurchasesController < ApplicationController message = TicketPurchase.purchase(@conference, current_user, params[:tickets][0]) if message.blank? redirect_to conference_conference_registrations_path(@conference.short_title), - notice: "Congratulations, you have successfully purchased a ticket! " \ + notice: 'Congratulations, you have successfully purchased a ticket! ' \ "You can pay it cash on check in! Thank you for supporting #{@conference.title}!" else redirect_to conference_conference_registrations_path(@conference.short_title), @@ -22,7 +22,7 @@ class TicketPurchasesController < ApplicationController notice: 'Ticket successfully destroyed.' else redirect_to conference_conference_registrations_path(@conference.short_title), - notice: "A error prohibited deleting your purchase! "\ + notice: 'A error prohibited deleting your purchase! '\ "#{@ticket_purchases.errors.full_messages.join('. ')}." end end