Sha256: f5d32603b18a64c7bee101ee2b7f760417f66ca14eabe9a2ff7bd7573aa05327

Contents?: true

Size: 1.56 KB

Versions: 16

Compression:

Stored size: 1.56 KB

Contents

# Make sure this loads before the account initialization
#------------------------------------------------------------------------------
ThemesForRails.config do |config|
  # themes_dir is used to allow ThemesForRails to list available themes. It is not used to resolve any paths or routes.
  # config.themes_dir = ":root/app/assets/themes"
  config.themes_dir = ":root/themes"

  # themes_config_file is the yaml configuration file for a theme
  config.themes_config_file = ':root/themes/:name/_theme.yml'

  # assets_dir is the path to your theme assets.
  config.assets_dir = ':root/themes/:name/theme_assets'

  # views_dir is the path to your theme views
  config.views_dir = ':root/themes/:name/theme_support/views'

  # locales_dir is the path to your theme locales
  config.locales_dir = ':root/themes/:name/theme_support/locales'

  # themes_routes_dir is the asset pipeline route base. 
  # Because of the way the asset pipeline resolves paths, you do
  # not need to include the 'themes' folder in your route dir.
  #
  # for example, to get application.css for the default theme, 
  # your URL route should be : /assets/default/stylesheets/application.css
  config.themes_routes_dir = "assets"
  
  config.asset_digests_enabled = true
end

#--- Load the theme config data
ThemesForRails.load_all_theme_data

#--- usually called in the ThemesForRails config.to_prepare method, 
#    for the precompile to work, these need to get called earlier than usual
if ENV['RAILS_GROUPS'] == 'assets'
  ThemesForRails.check_asset_pipeline
  ThemesForRails.add_themes_assets_to_asset_pipeline
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_cms-4.2.3.10 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.9 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.8 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.7 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.6 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.5 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.4 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.3 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.2 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3.1 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.3 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.2.3 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.2.2 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.2.1 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.2 spec/dummy/config/initializers/_themes_for_rails.rb
dm_cms-4.2.1.5 spec/dummy/config/initializers/_themes_for_rails.rb