lib/validatable_class_methods.rb in validatable-1.5.2 vs lib/validatable_class_methods.rb in validatable-1.6.0
- old
+ new
@@ -20,9 +20,14 @@
end
end
end
end
+ def all_validations
+ return validations + self.superclass.validations if self.superclass.respond_to? :validations
+ validations
+ end
+
def validations
@validations ||= []
end
def add_error(instance, attribute, msg)
\ No newline at end of file