Skip to content

Commit

Permalink
Merge pull request #179 from DavyJonesLocker/chore/prefer-require-rel…
Browse files Browse the repository at this point in the history
…ative

Prefer `require_relative` for internal requires
  • Loading branch information
tagliala authored Sep 19, 2024
2 parents 0d84426 + a0b1a59 commit 677f1ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/client_side_validations/simple_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

require 'simple_form'
require 'client_side_validations'
require 'client_side_validations/simple_form/form_builder'

require_relative 'simple_form/form_builder'

if defined?(Rails)
require 'client_side_validations/simple_form/engine'
require 'client_side_validations/generators/simple_form'
require_relative 'simple_form/engine'
require_relative 'generators/simple_form'
end
2 changes: 1 addition & 1 deletion test/javascript/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def call(env)
use AssetPath, urls: ['/vendor/assets/javascripts'], root: rails_validations_path.full_gem_path

DEFAULT_JQUERY_VERSION = '3.7.1.slim'
QUNIT_VERSION = '2.21.0'
QUNIT_VERSION = '2.22.0'

helpers do
def jquery_version
Expand Down

0 comments on commit 677f1ee

Please sign in to comment.