lib/whyvalidationssuckin96/validation_support.rb
# If the class or module has a public 'run_callbacks' instance method, we run validations and fire
# appropriate callbacks
# @return [true, false]
If the class or module has a public 'run_callbacks' instance method, we run validations and fire
appropriate callbacks
If the class or module has a public ' run_callbacks ' instance method we run validations and fire appropriate callbacks
def run_with_generic_callbacks?
        if defined?(@run_with_generic_callbacks)
          @run_with_generic_callbacks
        else
          @run_with_generic_callbacks = !public_instance_methods.grep(/run_callbacks/).empty?
        end
      end
def run_with_generic_callbacks? if defined? ( @run_with_generic_callbacks ) @run_with_generic_callbacks else @run_with_generic_callbacks = ! public_instance_methods . grep ( / run_callbacks / ) . empty? end end
If the class or module has a public 'run_callbacks' instance method, we run validations and fire
appropriate callbacks
If the class or module has a public ' run_callbacks ' instance method we run validations and fire appropriate callbacks
None
true, false