lib/sewing_kit/railtie.rb in sewing_kit-0.122.1 vs lib/sewing_kit/railtie.rb in sewing_kit-0.123.0
- old
+ new
@@ -1,16 +1,8 @@
# frozen_string_literal: true
require 'rails'
require 'rails/railtie'
-begin
- # Force assets:precompile to be defined before sewing_kit's railtie tries to
- # extend it.
- require "sprockets/railtie" if defined? Rails
-# rubocop:disable Lint/HandleExceptions
-rescue
- #
-end
-# rubocop:enable Lint/HandleExceptions
+
require 'sewing_kit/webpack/compiler'
require 'sewing_kit/webpack/helper'
require 'sewing_kit/webpack/dev'
module SewingKit