Add rubocop-rails-omakase gem

This commit is contained in:
Ryan W
2023-12-30 16:30:37 -08:00
parent 18e0822ee2
commit cfcebd12db
13 changed files with 31 additions and 19 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ module Railsondocker
# Please, add to the `ignore` list any other `lib` subdirectories that do
# not contain `.rb` files, or that should not be reloaded or eager loaded.
# Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w(assets tasks))
config.autoload_lib(ignore: %w[assets tasks])
# Configuration for the application, engines, and railties goes here.
#
+1 -1
View File
@@ -17,7 +17,7 @@ Rails.application.configure do
config.consider_all_requests_local = true
# Allow access when running in docker
config.web_console.allowed_ips = ["172.16.0.0/12", "192.168.0.0/16"]
config.web_console.allowed_ips = [ "172.16.0.0/12", "192.168.0.0/16" ]
# Enable server timing
config.server_timing = true
+1 -1
View File
@@ -7,4 +7,4 @@
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
Rails.backtrace_cleaner.remove_silencers! if ENV['BACKTRACE']
Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
+1 -1
View File
@@ -7,7 +7,7 @@
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json]
wrap_parameters format: [ :json ]
end
# To enable root element in JSON for ActiveRecord objects.