Sha256: 56af53c9855c18035d522d9ab3c1b5281a7d51af091b9d9309391717781a7f7a
Contents?: true
Size: 459 Bytes
Versions: 64
Compression:
Stored size: 459 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, as: :theme) end end end
Version data entries
64 entries across 64 versions & 1 rubygems