From 546c4718e781f8900ba6498307ccb1e659de5edd Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 15 Nov 2016 23:56:03 +0100 Subject: Localizations for most server-side strings --- config/application.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config/application.rb') diff --git a/config/application.rb b/config/application.rb index 5b5e66ca7..6525571cc 100644 --- a/config/application.rb +++ b/config/application.rb @@ -31,16 +31,16 @@ module Mastodon allow do origins '*' - resource '/api/*', :headers => :any, :methods => [:post, :put, :delete, :get, :options], credentials: false - resource '/oauth/token', :headers => :any, :methods => [:post], credentials: false + resource '/api/*', headers: :any, methods: [:post, :put, :delete, :get, :options], credentials: false + resource '/oauth/token', headers: :any, methods: [:post], credentials: false end end config.middleware.use Rack::Attack config.middleware.use Rack::Deflater - config.browserify_rails.source_map_environments += %w[development production] - config.browserify_rails.commandline_options = "--transform [ babelify --presets [ es2015 react ] ] --extension=\".jsx\"" + config.browserify_rails.source_map_environments += %w(development production) + config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] ] --extension=".jsx"' config.to_prepare do Doorkeeper::AuthorizationsController.layout 'auth' @@ -50,7 +50,7 @@ module Mastodon 'Server' => 'Mastodon', 'X-Frame-Options' => 'DENY', 'X-Content-Type-Options' => 'nosniff', - 'X-XSS-Protection' => '1; mode=block' + 'X-XSS-Protection' => '1; mode=block', } end end -- cgit