lib/active_validation.rb in active_validation-4.0.10 vs lib/active_validation.rb in active_validation-4.0.11
- old
+ new
@@ -1,13 +1,15 @@
+require 'action_dispatch'
require 'active_model'
require 'active_support'
require 'active_support/core_ext/time/zones'
require 'active_validation/version'
+require 'csv'
ACTIVE_VALIDATION_VALIDATORS ||= %w[
- alpha alpha_numeric base64 boolean coordinate credit_card currency cusip email equality hex imei
- ip isbn isin mac_address name password phone sedol slug ssn time_zone tracking_number type url
- username uuid
+ alpha alpha_numeric base64 boolean coordinate credit_card csv currency cusip email equality
+ file_size hex imei ip isbn isin mac_address name password phone sedol slug ssn time_zone
+ tracking_number type url username uuid
].freeze
ACTIVE_VALIDATION_VALIDATORS.each do |file_name|
require "active_validation/validators/#{file_name}_validator"
end