Sha256: f6201fa346c36a17b79b33bd61e162dbf10ef6e900a9f97cad4fca173b0d42fe

Contents?: true

Size: 419 Bytes

Versions: 67

Compression:

Stored size: 419 Bytes

Contents

module Kernel
  module_function

  alias_method :jets_original_require, :require
  # @param path [String]
  # @return [Boolean]
  def require(path)
    # Hack to prevent Rails const from being defined
    # Actionview requires "rails-html-sanitizer" and that creates a Rails module
    path = "jets-html-sanitizer" if path == "rails-html-sanitizer" && !ENV['JETS_RAILS_CONST']
    jets_original_require(path)
  end
end

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
jets-4.0.12 lib/jets/core_ext/kernel.rb
jets-4.0.11 lib/jets/core_ext/kernel.rb
jets-4.0.10 lib/jets/core_ext/kernel.rb
jets-4.0.9 lib/jets/core_ext/kernel.rb
jets-4.0.8 lib/jets/core_ext/kernel.rb
jets-4.0.7 lib/jets/core_ext/kernel.rb
jets-4.0.6 lib/jets/core_ext/kernel.rb
jets-4.0.5 lib/jets/core_ext/kernel.rb
jets-4.0.4 lib/jets/core_ext/kernel.rb
jets-4.0.3 lib/jets/core_ext/kernel.rb
jets-4.0.2 lib/jets/core_ext/kernel.rb
jets-4.0.1 lib/jets/core_ext/kernel.rb
jets-4.0.0 lib/jets/core_ext/kernel.rb
jets-3.2.2 lib/jets/core_ext/kernel.rb
jets-3.2.1 lib/jets/core_ext/kernel.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/core_ext/kernel.rb
jets-3.2.0 lib/jets/core_ext/kernel.rb
jets-3.1.5 lib/jets/core_ext/kernel.rb
jets-3.1.4 lib/jets/core_ext/kernel.rb
jets-3.1.3 lib/jets/core_ext/kernel.rb