diff --git a/.ruby-version b/.ruby-version index 944880fa..a0891f56 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.0 +3.3.4 diff --git a/Gemfile.lock b/Gemfile.lock index 0a73015c..bcdb6e12 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -242,7 +242,7 @@ GEM rubocop-performance (1.21.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rails (2.24.1) + rubocop-rails (2.25.1) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) diff --git a/lib/client_side_validations.rb b/lib/client_side_validations.rb index 16eda92b..ea372dca 100644 --- a/lib/client_side_validations.rb +++ b/lib/client_side_validations.rb @@ -21,7 +21,8 @@ def html_validation_attributes(attr_name) end def validationErrorMsg(attr_name) - nil if @regexp[attr_name].nil? + return if @regexp[attr_name].nil? + @regexp[attr_name][:error_msg] end