Standardise on double quoted strings
This commit is contained in:
parent
5cbd4038ed
commit
dc2a2c8ebd
230 changed files with 1809 additions and 1812 deletions
|
@ -1,7 +1,7 @@
|
|||
# Configure ActionMailer SMTP settings
|
||||
ActionMailer::Base.smtp_settings = {
|
||||
:address => 'localhost',
|
||||
:address => "localhost",
|
||||
:port => 25,
|
||||
:domain => 'localhost',
|
||||
:domain => "localhost",
|
||||
:enable_starttls_auto => false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets.
|
||||
Rails.application.config.assets.version = '1.0'
|
||||
Rails.application.config.assets.version = "1.0"
|
||||
|
||||
# Add additional assets to the asset load path
|
||||
# Rails.application.config.assets.paths << Emoji.images_path
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#++
|
||||
|
||||
require 'classic_pagination/pagination'
|
||||
require 'classic_pagination/pagination_helper'
|
||||
require "classic_pagination/pagination"
|
||||
require "classic_pagination/pagination_helper"
|
||||
|
||||
ActionController::Base.class_eval do
|
||||
include ActionController::Pagination
|
||||
|
|
|
@ -7,8 +7,8 @@ module OpenStreetMap
|
|||
class Cors < Rack::Cors
|
||||
def call(env)
|
||||
status, headers, body = super env
|
||||
if headers['Access-Control-Allow-Origin']
|
||||
headers['Cache-Control'] = 'no-cache'
|
||||
if headers["Access-Control-Allow-Origin"]
|
||||
headers["Cache-Control"] = "no-cache"
|
||||
end
|
||||
[status, headers, body]
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@ ActionView::Base.field_error_proc = proc do |html_tag, _instance|
|
|||
class_attr_index = html_tag.index 'class="'
|
||||
|
||||
if class_attr_index
|
||||
html_tag.insert class_attr_index + 7, 'field_with_errors '
|
||||
html_tag.insert class_attr_index + 7, "field_with_errors "
|
||||
else
|
||||
html_tag.insert html_tag.index(/\/?>/), ' class="field_with_errors"'
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Konacha.configure do |config|
|
||||
require 'capybara/poltergeist'
|
||||
require "capybara/poltergeist"
|
||||
config.spec_dir = "test/javascripts"
|
||||
config.driver = :poltergeist
|
||||
end if defined?(Konacha)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'oauth/rack/oauth_filter'
|
||||
require "oauth/rack/oauth_filter"
|
||||
|
||||
Rails.configuration.middleware.use OAuth::Rack::OAuthFilter
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
require 'output_compression/output_compression'
|
||||
require "output_compression/output_compression"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class R2Template < Tilt::Template
|
||||
self.default_mime_type = 'text/css'
|
||||
self.default_mime_type = "text/css"
|
||||
|
||||
def self.engine_initialized?
|
||||
defined? ::R2
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
|
||||
|
||||
Sanitize::Config::OSM[:elements] -= %w(div style)
|
||||
Sanitize::Config::OSM[:add_attributes] = { 'a' => { 'rel' => 'nofollow' } }
|
||||
Sanitize::Config::OSM[:add_attributes] = { "a" => { "rel" => "nofollow" } }
|
||||
Sanitize::Config::OSM[:remove_contents] = %w(script style)
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
if defined?(MEMCACHE_SERVERS)
|
||||
Rails.application.config.session_store :mem_cache_store, :memcache_server => MEMCACHE_SERVERS, :namespace => "rails:session", :key => "_osm_session"
|
||||
else
|
||||
Rails.application.config.session_store :cache_store, :key => '_osm_session'
|
||||
Rails.application.config.session_store :cache_store, :key => "_osm_session"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue