lib/phonelib.rb in phonelib-0.3.2 vs lib/phonelib.rb in phonelib-0.3.3
- old
+ new
@@ -8,6 +8,6 @@
extend Module.new {
include Core
}
end
-autoload :PhoneValidator, 'validators/phone_validator' if defined? ActiveModel
+autoload :PhoneValidator, 'validators/phone_validator' if defined?(ActiveModel) || defined?(Rails)