Skip to content

Commit 9478019

Browse files
Judahmeekjustin808
authored andcommitted
reenable auto_load_bundle for generator
1 parent 05e045e commit 9478019

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ ReactOnRails.configure do |config|
2828
#
2929
config.build_test_command = "RAILS_ENV=test bin/shakapacker"
3030

31+
config.auto_load_bundle = true
32+
config.components_subdirectory = "ror_components"
3133
################################################################################
3234
# Advanced Configuration
3335
################################################################################

rakelib/shakapacker_examples.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace :shakapacker_examples do # rubocop:disable Metrics/BlockLength
4242
end
4343
sh_in_dir(example_type.dir, generator_commands)
4444
sh_in_dir(example_type.dir, "npm install")
45-
sh_in_dir(example_type.dir, "bin/rake react_on_rails:generate_packs")
45+
sh_in_dir(example_type.dir, "bundle exec rake react_on_rails:generate_packs")
4646
end
4747
end
4848

0 commit comments

Comments
 (0)