Sha256: 29268a70ba2e3e0db5f6f057c6512cf71e890b71efeea2ee4a76b62de99e3756
Contents?: true
Size: 464 Bytes
Versions: 11
Compression:
Stored size: 464 Bytes
Contents
module Pageflow module ThemesHelper include RenderJsonHelper def themes_options_json_seed(config = Pageflow.config) config.themes.each_with_object({}) { |theme, options| options[theme.name] = theme.options }.to_json.html_safe end def theme_json_seeds(config) render_json_partial('pageflow/themes/theme', collection: config.themes.to_a, as: :theme) end end end
Version data entries
11 entries across 11 versions & 1 rubygems