lib/whyvalidationssuckin96/validation_support.rb
# An array of instances of all validations for this object
# @return [Array]
An array of instances of all validations for this object
An array of instances of all validations for this object
def all_validations
        @all_validations ||= self.class.validation_collection.inject(ValidationCollection.new) do |vc, (v,opts)|
          vc << v.new(self, opts)
          vc
        end
      end
def all_validations @all_validations ||= self . class . validation_collection . inject ( ValidationCollection . new ) do | vc , ( v , opts ) | vc << v . new ( self , opts ) vc end end
An array of instances of all validations for this object
An array of instances of all validations for this object
None
Array