Skip to content

Commit

Permalink
Merge pull request #159 from rails/flavorjones-fix-requires
Browse files Browse the repository at this point in the history
refactor: use require_relative for internal requires
  • Loading branch information
flavorjones committed May 12, 2023
2 parents 5a1006f + 0fd606b commit 5e3bc32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 5 additions & 3 deletions lib/rails-html-sanitizer.rb
@@ -1,9 +1,11 @@
# frozen_string_literal: true

require "rails/html/sanitizer/version"
require_relative "rails/html/sanitizer/version"

require "loofah"
require "rails/html/scrubbers"
require "rails/html/sanitizer"

require_relative "rails/html/scrubbers"
require_relative "rails/html/sanitizer"

module Rails
module Html
Expand Down
4 changes: 1 addition & 3 deletions rails-html-sanitizer.gemspec
@@ -1,9 +1,7 @@
# coding: utf-8
# frozen_string_literal: true

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "rails/html/sanitizer/version"
require_relative "lib/rails/html/sanitizer/version"

Gem::Specification.new do |spec|
spec.name = "rails-html-sanitizer"
Expand Down

0 comments on commit 5e3bc32

Please sign in to comment.