lib/sewing_kit/railtie.rb in sewing_kit-0.92.1 vs lib/sewing_kit/railtie.rb in sewing_kit-0.93.0
- old
+ new
@@ -22,9 +22,13 @@
if is_development && (Rails.const_defined?(:Server) || ENV['SK_FORCE_DEV_SERVER'])
webpack_dev = SewingKit::Webpack::Dev.new
webpack_dev.start
end
+ ActiveSupport.on_load(:action_controller) do
+ include SewingKit::Webpack::Helper
+ end
+
ActiveSupport.on_load(:action_view) do
include SewingKit::Webpack::Helper
end
end
# rubocop:enable Metrics/BlockLength