lib/validation_reflection.rb in redinger-validation_reflection-0.3.2 vs lib/validation_reflection.rb in redinger-validation_reflection-0.3.3

- old
+ new

@@ -120,8 +120,13 @@ end ensure ActiveRecordExtensions::ValidationReflection.in_ignored_subvalidation = save_ignore end end - end -end \ No newline at end of file +end + +ActiveRecord::Base.class_eval do + include ActiveRecordExtensions::ValidationReflection + ActiveRecordExtensions::ValidationReflection.load_config + ActiveRecordExtensions::ValidationReflection.install(self) +end