lib/active_validation.rb in active_validation-1.0.0 vs lib/active_validation.rb in active_validation-1.1.0
- old
+ new
@@ -4,22 +4,21 @@
require 'active_validation/validators/alpha_validator'
require 'active_validation/validators/alpha_numeric_validator'
require 'active_validation/validators/base64_validator'
require 'active_validation/validators/boolean_validator'
+require 'active_validation/validators/coordinate_validator'
require 'active_validation/validators/credit_card_validator'
require 'active_validation/validators/currency_validator'
require 'active_validation/validators/cusip_validator'
require 'active_validation/validators/email_validator'
require 'active_validation/validators/equality_validator'
require 'active_validation/validators/hex_validator'
require 'active_validation/validators/imei_validator'
require 'active_validation/validators/ip_validator'
require 'active_validation/validators/isbn_validator'
require 'active_validation/validators/isin_validator'
-require 'active_validation/validators/latitude_validator'
-require 'active_validation/validators/longitude_validator'
require 'active_validation/validators/mac_address_validator'
require 'active_validation/validators/name_validator'
require 'active_validation/validators/password_validator'
require 'active_validation/validators/phone_validator'
require 'active_validation/validators/sedol_validator'
@@ -33,22 +32,21 @@
require 'rspec/matchers'
require 'active_validation/matchers/ensure_valid_alpha_format_of'
require 'active_validation/matchers/ensure_valid_alpha_numeric_format_of'
require 'active_validation/matchers/ensure_valid_base64_format_of'
require 'active_validation/matchers/ensure_valid_boolean_format_of'
+ require 'active_validation/matchers/ensure_valid_coordinate_format_of'
require 'active_validation/matchers/ensure_valid_credit_card_format_of'
require 'active_validation/matchers/ensure_valid_currency_format_of'
require 'active_validation/matchers/ensure_valid_cusip_format_of'
require 'active_validation/matchers/ensure_valid_email_format_of'
require 'active_validation/matchers/ensure_valid_equality_matcher_of'
require 'active_validation/matchers/ensure_valid_hex_format_of'
require 'active_validation/matchers/ensure_valid_imei_format_of'
require 'active_validation/matchers/ensure_valid_ip_format_of'
require 'active_validation/matchers/ensure_valid_isbn_format_of'
require 'active_validation/matchers/ensure_valid_isin_format_of'
- require 'active_validation/matchers/ensure_valid_latitude_format_of'
- require 'active_validation/matchers/ensure_valid_longitude_format_of'
require 'active_validation/matchers/ensure_valid_mac_address_format_of'
require 'active_validation/matchers/ensure_valid_name_format_of'
require 'active_validation/matchers/ensure_valid_password_format_of'
require 'active_validation/matchers/ensure_valid_phone_format_of'
require 'active_validation/matchers/ensure_valid_sedol_format_of'
@@ -62,10 +60,11 @@
if defined?(Rails)
require 'rails'
module ActiveValidation
class Railtie < ::Rails::Railtie
+
initializer 'active_validation' do |app|
ActiveValidation::Railtie.instance_eval do
locales = locales_from(app.config.i18n.available_locales)
locales.each do |locale|
@@ -84,8 +83,9 @@
def self.locales_from(args)
array = Array(args || [])
array.blank? ? '*' : array
end
+
end
end
end
\ No newline at end of file