Skip to content

Commit ce2a468

Browse files
committed
added element plugin to hyperloop initializer generator
1 parent 9f42cad commit ce2a468

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ruby/hyperloop/lib/generators/hyperloop/install_generator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def create_initializer
131131
config.import 'reactrb/auto-import' # will automatically bridge js components to hyperloop components
132132
#{" config.import 'jquery', client_only: true # remove this line if you don't need jquery" if skip_webpack?}
133133
config.import 'opal-jquery', client_only: true # remove this line if you don't need jquery'
134+
config.import 'react/ext/opal-jquery/element', client_only: true # remove tis line if you don't need jquery
134135
#{" config.import 'opal_hot_reloader' if Rails.env.development?" unless options['skip-hot-reloader']}
135136
end
136137
RUBY

0 commit comments

Comments
 (0)