You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
369 B
18 lines
369 B
# frozen_string_literal: true |
|
|
|
Rails.application.config.to_prepare do |
|
custom_css = begin |
|
Setting.custom_css |
|
rescue # Running without a cache, database, not migrated, no connection, etc |
|
nil |
|
end |
|
|
|
if custom_css.present? |
|
Rails |
|
.cache |
|
.write( |
|
:setting_digest_custom_css, |
|
Digest::SHA256.hexdigest(custom_css) |
|
) |
|
end |
|
end
|
|
|