diff --git a/lib/client_side_validations/simple_form.rb b/lib/client_side_validations/simple_form.rb index e3470fe..2d00b48 100644 --- a/lib/client_side_validations/simple_form.rb +++ b/lib/client_side_validations/simple_form.rb @@ -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 diff --git a/test/javascript/server.rb b/test/javascript/server.rb index fa6c501..6a09df6 100644 --- a/test/javascript/server.rb +++ b/test/javascript/server.rb @@ -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