Sha256: 7784b6f7f1689b4a212b03acdd9b3bba96566e80d18b190d04e33a71a7291706

Contents?: true

Size: 752 Bytes

Versions: 2

Compression:

Stored size: 752 Bytes

Contents

ValidatesTimeliness.setup do |config|
  # Add plugin to supported ORMs (only :active_record for now)
  # config.extend_orms = [ :active_record ]
  #
  # 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.now },
  #   :today => lambda { Date.today }
  # )
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
validates_timeliness-3.0.0.beta.2 lib/generators/validates_timeliness/templates/validates_timeliness.rb
validates_timeliness-3.0.0.beta lib/generators/validates_timeliness/templates/validates_timeliness.rb