Sha256: 04bc9b47c8ac40317249c7f99353570abcede8c00f1d6a8c9d17128e4ce6e91a

Contents?: true

Size: 863 Bytes

Versions: 1

Compression:

Stored size: 863 Bytes

Contents

ValidatesTimeliness.setup do |config|
  # Add plugin to supported ORMs (only :active_record for now)
  # config.extend_orms = [ :active_record ]
  #
  # User the plugin date/time parser which is stricter and extendable
  # config.use_plugin_parser = false
  #
  # 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

1 entries across 1 versions & 1 rubygems

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