Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
rubocop:
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module CodeLearnApi
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.0

# Disable freezing of autoload_paths and eager_load_paths for Rails 8.1 compatibility
# with older gems that try to modify these arrays
config.autoloader = :zeitwerk
Expand Down
2 changes: 1 addition & 1 deletion config/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Monkey patch Array to prevent freezing errors in Rails 8.1
# This allows older gems to modify frozen autoload_paths arrays
class Array
alias_method :original_freeze, :freeze
alias original_freeze freeze

def freeze
# Check if this array is being set as autoload_paths or eager_load_paths
Expand Down