Sha256: bd6c837df1c0408d4381740f350456f4b1f6207c35daddfe6588eb759a0455cf

Contents?: true

Size: 199 Bytes

Versions: 14

Compression:

Stored size: 199 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/time/zones'

class TimeZoneValidator < BaseValidator

  private

  def valid_attr?
    !ActiveSupport::TimeZone[value].nil?
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lite-validators-1.3.1 lib/lite/validators/time_zone_validator.rb
lite-validators-1.3.0 lib/lite/validators/time_zone_validator.rb
lite-validators-1.2.0 lib/lite/validators/time_zone_validator.rb
lite-validators-1.1.2 lib/lite/validators/time_zone_validator.rb
lite-validators-1.1.1 lib/lite/validators/time_zone_validator.rb
lite-validators-1.1.0 lib/lite/validators/time_zone_validator.rb
lite-validators-1.0.7 lib/lite/validators/time_zone_validator.rb
lite-validators-1.0.6 lib/lite/validators/time_zone_validator.rb
lite-validators-1.0.5 lib/lite/validators/time_zone_validator.rb
lite-validators-1.0.4 lib/lite/validators/time_zone_validator.rb
lite-validators-1.0.3 lib/lite/validators/time_zone_validator.rb
lite-validators-1.0.2 lib/lite/validators/time_zone_validator.rb
lite-validators-1.0.1 lib/lite/validators/time_zone_validator.rb
lite-validators-1.0.0 lib/lite/validators/time_zone_validator.rb