lib/sewing_kit/railtie.rb in sewing_kit-0.29.1 vs lib/sewing_kit/railtie.rb in sewing_kit-0.29.2

- old
+ new

@@ -1,7 +1,16 @@ # 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