lib/phonelib.rb in phonelib-0.9.3 vs lib/phonelib.rb in phonelib-0.10.1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # main Phonelib module definition module Phonelib # load phonelib classes/modules autoload :Core, 'phonelib/core' autoload :Phone, 'phonelib/phone' @@ -10,14 +12,10 @@ extend Core end if defined?(ActiveModel) || defined?(Rails) - if RUBY_VERSION >= '3.0.0' - autoload :PhoneValidator, 'validators/phone_validator3' - else - autoload :PhoneValidator, 'validators/phone_validator' - end + autoload :PhoneValidator, 'validators/phone_validator' if defined?(Rails) class Phonelib::Railtie < Rails::Railtie initializer 'phonelib' do |app| app.config.eager_load_namespaces << Phonelib