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
@@ -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.