Skip to content

Commit 2557d59

Browse files
Copilottuanle03
andcommitted
Fix RuboCop offenses (autocorrected)
Co-authored-by: tuanle03 <66480375+tuanle03@users.noreply.github.com>
1 parent 55fb0f5 commit 2557d59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module CodeLearnApi
1010
class Application < Rails::Application
1111
# Initialize configuration defaults for originally generated Rails version.
1212
config.load_defaults 7.0
13-
13+
1414
# Disable freezing of autoload_paths and eager_load_paths for Rails 8.1 compatibility
1515
# with older gems that try to modify these arrays
1616
config.autoloader = :zeitwerk

config/boot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Monkey patch Array to prevent freezing errors in Rails 8.1
77
# This allows older gems to modify frozen autoload_paths arrays
88
class Array
9-
alias_method :original_freeze, :freeze
9+
alias original_freeze freeze
1010

1111
def freeze
1212
# Check if this array is being set as autoload_paths or eager_load_paths

0 commit comments

Comments
 (0)