lib/whyvalidationssuckin96/validation_support.rb in whyvalidationssuckin96-1.6.1 vs lib/whyvalidationssuckin96/validation_support.rb in whyvalidationssuckin96-1.6.2

- old
+ new

@@ -86,10 +86,10 @@ # @return [true, false] def run_with_generic_callbacks? if defined?(@run_with_generic_callbacks) @run_with_generic_callbacks else - @run_with_generic_callbacks = public_instance_methods.include?('run_callbacks') + @run_with_generic_callbacks = !public_instance_methods.grep(/run_callbacks/).empty? end end # An array of arrays, the first element of each being the validation subclass that will be instantiated # when validation is performed, the last element being the options the validation will be instantiated