Skip to content

Commit d6d9c71

Browse files
authored
Remove ApplicationController.helpers for append_tags (#1516)
1 parent 8b916c5 commit d6d9c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/react_on_rails/helper.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ def load_pack_for_component(component_name)
328328

329329
ReactOnRails::WebpackerUtils.raise_nested_entries_disabled unless ReactOnRails::WebpackerUtils.nested_entries?
330330

331-
ApplicationController.helpers.append_javascript_pack_tag "generated/#{component_name}"
332-
ApplicationController.helpers.append_stylesheet_pack_tag "generated/#{component_name}"
331+
append_javascript_pack_tag "generated/#{component_name}"
332+
append_stylesheet_pack_tag "generated/#{component_name}"
333333
end
334334

335335
def generated_components_pack_path(component_name)

0 commit comments

Comments
 (0)