Skip to content

Commit 0dc07ac

Browse files
justin808claude
andcommitted
Add missing require for compact_blank in configuration.rb
This adds the missing `require "active_support/core_ext/enumerable"` statement that was mentioned in the PR description but was not included in the previous commit. Without this require statement, the code would fail on Rails 5.2-6.0 because compact_blank was only introduced in Rails 6.1. This gem supports Rails >= 5.2 (per react_on_rails.gemspec), so the require is necessary to ensure the method is available on older Rails versions. The compact_blank method is needed (rather than just compact) because: - server_bundle_js_file defaults to "" (empty string) - Pro config files could potentially be set to empty strings - compact_blank filters out both nil and empty/blank values 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 664e514 commit 0dc07ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/react_on_rails/configuration.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
22

3+
require "active_support/core_ext/enumerable"
4+
35
# rubocop:disable Metrics/ClassLength
46

57
module ReactOnRails

0 commit comments

Comments
 (0)