Module: Sail::ConstantCollection
- Defined in:
- lib/sail/constant_collection.rb
Overview
ConstantCollection
This module includes a variety of constants that are used multiple times in the code to avoid unnecessary allocations.
Constant Summary collapse
- TRUE =
"true"
- FALSE =
"false"
- STRING_BOOLEANS =
%w[true false].freeze
- BOOLEAN =
"boolean"
- ON =
"on"
- BOOLEANS =
[true, false].freeze
- CONFIG_FILE_PATH =
"./config/sail.yml"
- STALE =
"stale"
- RECENT =
"recent"
- FIELDS_FOR_SORT =
%w[name updated_at cast_type group].freeze
- SETTINGS_PER_PAGE =
8
- MINIMAL_SETTINGS_PER_PAGE =
24
- INPUT_DATE_FORMAT =
"%Y-%m-%dT%H:%m:%S"