From ab929758038fc648f8b7fb12875a9adf1cc021e0 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 28 Oct 2020 09:10:03 +0900 Subject: [PATCH] Fixed typo in app --- app/controllers/admin/booths_controller.rb | 2 +- app/controllers/admin/events_controller.rb | 2 +- app/controllers/admin/tracks_controller.rb | 2 +- app/controllers/application_controller.rb | 2 +- app/helpers/application_helper.rb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/admin/booths_controller.rb b/app/controllers/admin/booths_controller.rb index b33ec103..dd4e5844 100644 --- a/app/controllers/admin/booths_controller.rb +++ b/app/controllers/admin/booths_controller.rb @@ -10,7 +10,7 @@ module Admin @booth_export_option = params[:booth_export_option] respond_to do |format| format.html - # Explicity call #to_json to avoid the use of EventSerializer + # Explicitly call #to_json to avoid the use of EventSerializer format.json { render json: Booth.where(state: :confirmed, program: @program).to_json } format.xlsx do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\"" diff --git a/app/controllers/admin/events_controller.rb b/app/controllers/admin/events_controller.rb index d8e9c1c9..9db4a438 100644 --- a/app/controllers/admin/events_controller.rb +++ b/app/controllers/admin/events_controller.rb @@ -24,7 +24,7 @@ module Admin respond_to do |format| format.html - # Explicity call #to_json to avoid the use of EventSerializer + # Explicitly call #to_json to avoid the use of EventSerializer format.json { render json: Event.where(state: :confirmed, program: @program).to_json } format.xlsx do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\"" diff --git a/app/controllers/admin/tracks_controller.rb b/app/controllers/admin/tracks_controller.rb index a4f4c69e..511a4fa9 100644 --- a/app/controllers/admin/tracks_controller.rb +++ b/app/controllers/admin/tracks_controller.rb @@ -15,7 +15,7 @@ module Admin respond_to do |format| format.html - # Explicity call #to_json to avoid the use of EventSerializer + # Explicitly call #to_json to avoid the use of EventSerializer format.json { render json: Track.where(state: :confirmed, program: @program).to_json } format.xlsx do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\"" diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c15681aa..93105587 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -52,7 +52,7 @@ class ApplicationController < ActionController::Base Rails.logger.debug('IChain Record was not Unique!') sign_out(current_user) redirect_to root_path, - error: 'Your E-Mail adress is already registered at OSEM. Please contact the admin if you want to attach your openSUSE Account to OSEM!' + error: 'Your E-Mail address is already registered at OSEM. Please contact the admin if you want to attach your openSUSE Account to OSEM!' end rescue_from UserDisabled do diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9e27c1a5..24c08d0e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -69,7 +69,7 @@ module ApplicationHelper Comment.accessible_by(current_ability).find_since_last_login(user) end - # Recieves a PaperTrail::Version object + # Receives a PaperTrail::Version object # Outputs the list of attributes that were changed in the version (ignoring changes from one blank value to another) # Eg: If version.changeset = '{"title"=>[nil, "Premium"], "description"=>[nil, "Premium = Super cool"], "conference_id"=>[nil, 3]}' # Output will be 'title, description and conference'