Module: Pageflow::ThemesHelper

Defined in:
app/helpers/pageflow/themes_helper.rb

Instance Method Summary collapse

Instance Method Details

#themes_options_json_seedObject


3
4
5
6
7
# File 'app/helpers/pageflow/themes_helper.rb', line 3

def themes_options_json_seed
  Pageflow.config.themes.each_with_object({}) do |theme, options|
    options[theme.name] = theme.options
  end.to_json.html_safe
end