apply StringLiterals cop (remove double quotes, unless there is string interpolation)

This commit is contained in:
Stella Rouzi 2014-08-18 21:54:43 +03:00
parent f91467a00a
commit b7c45718d8
45 changed files with 275 additions and 109 deletions

View file

@ -36,7 +36,7 @@ module Osem
# config.i18n.default_locale = :de
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
config.encoding = 'utf-8'
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]

View file

@ -2,7 +2,7 @@
require File.expand_path('../application', __FILE__)
# Load the configuration file
path = Rails.root.join("config", "config.yml")
path = Rails.root.join('config', 'config.yml')
begin
CONFIG = YAML.load_file(path)[Rails.env]
rescue

View file

@ -9,7 +9,7 @@ Osem::Application.configure do
# Configure static asset server for tests with Cache-Control for performance
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
config.static_cache_control = 'public, max-age=3600'
# Do not eager load code on boot.
config.eager_load = false

View file

@ -22,7 +22,7 @@ Formtastic::FormBuilder.include_blank_for_select_by_default = false
# '<abbr title="required">*</abbr>'. In other words, if you configure formtastic.required
# in your locale, it will replace the abbr title properly. But if you don't want to use
# abbr tag, you can simply give a string as below
Formtastic::FormBuilder.required_string = "(required)"
Formtastic::FormBuilder.required_string = '(required)'
# Set the string that will be appended to the labels/fieldsets which are optional
# Defaults to an empty string ("") and also accepts procs (see required_string above)

View file

@ -1 +1 @@
Time::DATE_FORMATS[:db_without_seconds] = "%Y-%m-%d %H:%M"
Time::DATE_FORMATS[:db_without_seconds] = '%Y-%m-%d %H:%M'

View file

@ -69,7 +69,7 @@ Osem::Application.routes.draw do
end
end
patch "/questions/update_conference" => "questions#update_conference"
patch '/questions/update_conference' => 'questions#update_conference'
resources :questions
resources :events do
@ -91,7 +91,7 @@ Osem::Application.routes.draw do
resources :conference, only: [:show] do
resources :proposal do
resources :commercials, except: [:show, :index]
resources :event_attachment, controller: "event_attachments"
resources :event_attachment, controller: 'event_attachments'
member do
patch '/confirm' => 'proposal#confirm'
patch '/restart' => 'proposal#restart'
@ -103,13 +103,13 @@ Osem::Application.routes.draw do
resources :ticket_purchases, only: [:create, :destroy]
resource :schedule, only: [] do
get "/" => "schedule#index"
get '/' => 'schedule#index'
end
member do
get "gallery_photos"
patch "subscription" => "conference#subscribe"
delete "subscription" => "conference#unsubscribe"
get 'gallery_photos'
patch 'subscription' => 'conference#subscribe'
delete 'subscription' => 'conference#unsubscribe'
end
end
@ -129,7 +129,7 @@ Osem::Application.routes.draw do
end
end
get "/admin" => redirect("/admin/conference")
get '/admin' => redirect('/admin/conference')
root to: 'home#index', via: [:get, :options]
end