desc'Generate a crytographically secure secret key. This is typically used to generate a secret for cookie sessions.'
desc'Generate a crytographically secure secret key (rhis is typically used to generate a secret for cookie sessions).'
task:secretdo
require'active_support/secure_random'
putsActiveSupport::SecureRandom.hex(64)
...
...
@@ -20,17 +20,17 @@ end
namespace:timedo
namespace:zonesdo
desc'Displays names of all time zones recognized by the Rails TimeZone class, grouped by offset. Results can be filtered with optional OFFSET parameter, e.g., OFFSET=-6'
desc'Displays all time zones, also available: time:zones:us, time:zones:local -- filter with OFFSET parameter, e.g., OFFSET=-6'
task:alldo
build_time_zone_list(:all)
end
desc'Displays names of US time zones recognized by the Rails TimeZone class, grouped by offset. Results can be filtered with optional OFFSET parameter, e.g., OFFSET=-6'
# desc 'Displays names of US time zones recognized by the Rails TimeZone class, grouped by offset. Results can be filtered with optional OFFSET parameter, e.g., OFFSET=-6'
task:usdo
build_time_zone_list(:us_zones)
end
desc'Displays names of time zones recognized by the Rails TimeZone class with the same offset as the system local time'
# desc 'Displays names of time zones recognized by the Rails TimeZone class with the same offset as the system local time'