style(rubocop): fix all safe auto correctable offenses

This commit is contained in:
Charlie Smurthwaite
2023-03-16 15:50:53 +00:00
parent 02c93a4850
commit fd289c46fd
204 changed files with 2611 additions and 2486 deletions
+5 -3
View File
@@ -1,4 +1,4 @@
require_relative 'boot'
require_relative "boot"
require "rails"
require "active_model/railtie"
@@ -14,6 +14,7 @@ Bundler.require(*Rails.groups)
module Postal
class Application < Rails::Application
# Disable most generators
config.generators do |g|
g.orm :active_record
@@ -27,12 +28,13 @@ module Postal
config.eager_load_namespaces << Postal
# Disable field_with_errors
config.action_view.field_error_proc = Proc.new { |t, i| t }
config.action_view.field_error_proc = proc { |t, i| t }
# Load the tracking server middleware
require 'postal/tracking_middleware'
require "postal/tracking_middleware"
config.middleware.use Postal::TrackingMiddleware
config.logger = Postal.logger_for(:rails)
end
end