Sha256: 3400897d53d718b5c2b6fb6fa1ed271154f5de8ddda7268b45e5bbebf18ce231
Contents?: true
Size: 786 Bytes
Versions: 11
Compression:
Stored size: 786 Bytes
Contents
json.theme do json.assets do json.logo_desktop scrolled_theme_asset_path(theme, 'logoDesktop.svg', theme_file_role: :logo_desktop) json.logo_mobile scrolled_theme_asset_path(theme, 'logoMobile.svg', theme_file_role: :logo_mobile) json.unmute scrolled_theme_asset_path(theme, 'unmute.mp3') json.icons({}) json.icons do theme.options.fetch(:custom_icons, []).each do |icon_name| json.set!(icon_name, scrolled_theme_asset_path(theme, "icons/#{icon_name}.svg", relative_url: true)) end end end json.options(theme.options.deep_transform_keys { |key| key.to_s.camelize(:lower) }) end
Version data entries
11 entries across 11 versions & 1 rubygems