X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a36185b22f32f8053a6c1bd98bd751f24353a95f..8af14faa49deed681fa835dd6bd3f77316b44a55:/vendor/plugins/validates_email_format_of/rails/init.rb diff --git a/vendor/plugins/validates_email_format_of/rails/init.rb b/vendor/plugins/validates_email_format_of/rails/init.rb index bdc8b5794..bf4d5e80a 100644 --- a/vendor/plugins/validates_email_format_of/rails/init.rb +++ b/vendor/plugins/validates_email_format_of/rails/init.rb @@ -1 +1,3 @@ -require 'validates_email_format_of' +if defined?(ActionRecord::Base) + require 'validates_email_format_of' +end