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

Version Path
pageflow-14.5.2 app/helpers/pageflow/themes_helper.rb
pageflow-15.6.1 app/helpers/pageflow/themes_helper.rb
pageflow-15.6.0 app/helpers/pageflow/themes_helper.rb
pageflow-15.5.0 app/helpers/pageflow/themes_helper.rb
pageflow-15.4.0 app/helpers/pageflow/themes_helper.rb
pageflow-15.3.0 app/helpers/pageflow/themes_helper.rb
pageflow-15.2.2 app/helpers/pageflow/themes_helper.rb
pageflow-15.2.1 app/helpers/pageflow/themes_helper.rb
pageflow-15.2.0 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.2 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.1 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.0 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.0.rc0 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.0.beta6 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.0.beta5 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.0.beta4 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.0.beta3 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.0.beta2 app/helpers/pageflow/themes_helper.rb
pageflow-15.1.0.beta1 app/helpers/pageflow/themes_helper.rb
pageflow-15.0.2 app/helpers/pageflow/themes_helper.rb