Merge branch 'master' into dashboard

This commit is contained in:
decabeza
2019-03-26 16:45:48 +01:00
2476 changed files with 62613 additions and 84405 deletions

View File

@@ -15,7 +15,7 @@ Rails.application.configure do
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
config.action_mailer.asset_host = "http://localhost:3000"
# Deliver emails to a development mailbox at /letter_opener
@@ -50,7 +50,7 @@ Rails.application.configure do
config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
if ENV['BULLET']
if ENV["BULLET"]
Bullet.rails_logger = true
Bullet.add_footer = true
end

View File

@@ -22,7 +22,7 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
@@ -38,8 +38,8 @@ Rails.application.configure do
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
@@ -58,7 +58,7 @@ Rails.application.configure do
config.cache_store = :dalli_store, { value_max_bytes: 2000000 }
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com'
# config.action_controller.asset_host = "http://assets.example.com"
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -70,12 +70,12 @@ Rails.application.configure do
# Uncomment the following block of code and add your SMTP service credentials
# config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = {
# address: 'smtp.example.com',
# address: "smtp.example.com",
# port: 587,
# domain: 'example.com',
# user_name: '<username>',
# password: '<password>',
# authentication: 'plain',
# domain: "example.com",
# user_name: "<username>",
# password: "<password>",
# authentication: "plain",
# enable_starttls_auto: true }
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
@@ -90,4 +90,4 @@ Rails.application.configure do
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
end
end

View File

@@ -22,7 +22,7 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
@@ -38,8 +38,8 @@ Rails.application.configure do
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
@@ -58,7 +58,7 @@ Rails.application.configure do
config.cache_store = :dalli_store, { value_max_bytes: 2000000 }
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com'
# config.action_controller.asset_host = "http://assets.example.com"
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -70,12 +70,12 @@ Rails.application.configure do
# Uncomment the following block of code and add your SMTP service credentials
# config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = {
# address: 'smtp.example.com',
# address: "smtp.example.com",
# port: 587,
# domain: 'example.com',
# user_name: '<username>',
# password: '<password>',
# authentication: 'plain',
# domain: "example.com",
# user_name: "<username>",
# password: "<password>",
# authentication: "plain",
# enable_starttls_auto: true }
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to

View File

@@ -22,7 +22,7 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
@@ -38,8 +38,8 @@ Rails.application.configure do
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
@@ -58,7 +58,7 @@ Rails.application.configure do
config.cache_store = :dalli_store
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com'
# config.action_controller.asset_host = "http://assets.example.com"
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -70,12 +70,12 @@ Rails.application.configure do
# Uncomment the following block of code and add your SMTP service credentials
# config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = {
# address: 'smtp.example.com',
# address: "smtp.example.com",
# port: 587,
# domain: 'example.com',
# user_name: '<username>',
# password: '<password>',
# authentication: 'plain',
# domain: "example.com",
# user_name: "<username>",
# password: "<password>",
# authentication: "plain",
# enable_starttls_auto: true }
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to

View File

@@ -19,7 +19,7 @@ Rails.application.configure do
# Configure static file server for tests with Cache-Control for performance.
config.serve_static_files = true
config.static_cache_control = 'public, max-age=3600'
config.static_cache_control = "public, max-age=3600"
# Show full error reports and disable caching.
config.consider_all_requests_local = true
@@ -36,9 +36,9 @@ Rails.application.configure do
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
config.action_mailer.default_url_options = {
host: 'test'
host: "test"
}
config.action_mailer.asset_host = 'http://consul.test'
config.action_mailer.asset_host = "http://consul.test"
# Randomize the order test cases are executed.
config.active_support.test_order = :random
@@ -54,9 +54,9 @@ Rails.application.configure do
config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
if ENV['BULLET']
if ENV["BULLET"]
Bullet.raise = true # raise an error if n+1 query occurs
end
end
end
end