From daf22cb08a667f281dbce87373ed8db9c5825680 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sun, 24 Dec 2023 17:03:12 +0100 Subject: [PATCH] Remove redundant `send` It is possible to use `include` directly for this use case --- lib/client_side_validations/extender.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client_side_validations/extender.rb b/lib/client_side_validations/extender.rb index 91f0c91d..bd993972 100644 --- a/lib/client_side_validations/extender.rb +++ b/lib/client_side_validations/extender.rb @@ -7,7 +7,8 @@ module Extender def extend(klass, validators) validators.each do |validator| require "client_side_validations/#{klass.underscore}/#{validator.downcase}" - const_get(klass)::Validations.const_get(:"#{validator}Validator").send :include, ClientSideValidations.const_get(klass).const_get(validator) + + const_get(klass)::Validations.const_get(:"#{validator}Validator").include ClientSideValidations.const_get(klass).const_get(validator) end end end