lib/validates_telephone.rb in validates_telephone-1.1.0 vs lib/validates_telephone.rb in validates_telephone-2.0.0
- old
+ new
@@ -1,12 +1,8 @@
-#Validator
-require "validates_telephone/telephone_validator"
+require 'telephone_validator'
+require 'require_a_valid_telephone_matcher' if defined?(::Shoulda)
-#Rspec Matchers
-require "validates_telephone/shoulda-matchers/require_a_valid_telephone_matcher" if defined?(::Shoulda)
-require "validates_telephone/remarkable/require_a_valid_telephone_matcher" if defined?(::Remarkable)
-
module ValidatesTelephone
- autoload :Validator, "validates_telephone/validator"
- autoload :Regex, "validates_telephone/regex"
- autoload :Formatter, "validates_telephone/formatter"
+ autoload :Validator, 'validates_telephone/validator'
+ autoload :Regex, 'validates_telephone/regex'
+ autoload :Formatter, 'validates_telephone/formatter'
end
\ No newline at end of file