Skip to content

Commit

Permalink
Add lazy loader to action_controller_base (#1595)
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Dutro <[email protected]>
  • Loading branch information
soberstadt and camertron authored Feb 13, 2023
1 parent 40847fe commit f31bf3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-eels-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/view-components': patch
---

Change engine to mount on ActionController::Base
2 changes: 1 addition & 1 deletion lib/primer/view_components/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Engine < ::Rails::Engine
end

initializer "primer.forms.helpers" do
ActiveSupport.on_load :action_controller do
ActiveSupport.on_load :action_controller_base do
require "primer/form_helper"
helper Primer::FormHelper

Expand Down

0 comments on commit f31bf3f

Please sign in to comment.