Skip to content

Commit

Permalink
Remove redundant send
Browse files Browse the repository at this point in the history
It is possible to use `include` directly for this use case
  • Loading branch information
tagliala committed Dec 24, 2023
1 parent a88662f commit daf22cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client_side_validations/extender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daf22cb

Please sign in to comment.