Sha256: 2768ba09b31b3a1c866712eeccee2411c23fd213c342285e0a7673bedb444161

Contents?: true

Size: 1.42 KB

Versions: 142

Compression:

Stored size: 1.42 KB

Contents

# frozen_string_literal: true

ValidatesTimeliness.setup do |config|
  # Extend ORM/ODMs for full support (:active_record, :mongoid).
  # config.extend_orms = [ :active_record ]
  #
  # Default timezone
  # config.default_timezone = :utc
  #
  # Set the dummy date part for a time type values.
  # config.dummy_date_for_time_type = [ 2000, 1, 1 ]
  #
  # Ignore errors when restriction options are evaluated
  # config.ignore_restriction_errors = false
  #
  # Re-display invalid values in date/time selects
  # config.enable_date_time_select_extension!
  #
  # Handle multiparameter date/time values strictly
  # config.enable_multiparameter_extension!
  #
  # Shorthand date and time symbols for restrictions
  # config.restriction_shorthand_symbols.update(
  #   :now   => lambda { Time.current },
  #   :today => lambda { Date.current }
  # )
  #
  # Use the plugin date/time parser which is stricter and extendable
  # config.use_plugin_parser = false
  #
  # Add one or more formats making them valid. e.g. add_formats(:date, 'd(st|rd|th) of mmm, yyyy')
  # config.parser.add_formats()
  #
  # Remove one or more formats making them invalid. e.g. remove_formats(:date, 'dd/mm/yyy')
  # config.parser.remove_formats()
  #
  # Change the amiguous year threshold when parsing a 2 digit year
  # config.parser.ambiguous_year_threshold =  30
  #
  # Treat ambiguous dates, such as 01/02/1950, as a Non-US date.
  # config.parser.remove_us_formats
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
renalware-core-2.0.104 config/initializers/validates_timeliness.rb
renalware-core-2.0.103 config/initializers/validates_timeliness.rb
renalware-core-2.0.102 config/initializers/validates_timeliness.rb
renalware-core-2.0.101 config/initializers/validates_timeliness.rb
renalware-core-2.0.100 config/initializers/validates_timeliness.rb
renalware-core-2.0.99 config/initializers/validates_timeliness.rb
renalware-core-2.0.98 config/initializers/validates_timeliness.rb
renalware-core-2.0.97 config/initializers/validates_timeliness.rb
renalware-core-2.0.96 config/initializers/validates_timeliness.rb
renalware-core-2.0.95 config/initializers/validates_timeliness.rb
renalware-core-2.0.94 config/initializers/validates_timeliness.rb
renalware-core-2.0.93 config/initializers/validates_timeliness.rb
renalware-core-2.0.92 config/initializers/validates_timeliness.rb
renalware-core-2.0.91 config/initializers/validates_timeliness.rb
renalware-core-2.0.90 config/initializers/validates_timeliness.rb
renalware-core-2.0.89 config/initializers/validates_timeliness.rb
renalware-core-2.0.88 config/initializers/validates_timeliness.rb
renalware-core-2.0.87 config/initializers/validates_timeliness.rb
renalware-core-2.0.86 config/initializers/validates_timeliness.rb
renalware-core-2.0.85 config/initializers/validates_timeliness.rb