conversionfoundry / breeze

A Ruby on Rails CMS for brochure-style websites.
Other
3 stars 2 forks source link

Assets for Breeze and Breeze Commerce required in application.rb #171

Open isaacfreeman opened 11 years ago

isaacfreeman commented 11 years ago

We currently require applications using Breeze to include lines for handling assets as follows:

    config.assets.precompile += ['breeze/breeze.css', 'breeze/breeze.js']
    config.assets.precompile += ['breeze/breeze_commerce.css', 'breeze/breeze_commerce.js']
    theme_names = Dir[ Rails.root.join("vendor/themes/*") ].map { |d| File.basename(d) }
    theme_names.each do |theme_name|
      config.assets.paths += [ Rails.root.join("vendor/themes/#{theme_name}/stylesheets").to_s ]
      config.assets.paths += [ Rails.root.join("vendor/themes/#{theme_name}/javascripts").to_s ]
      config.assets.paths += [ Rails.root.join("vendor/themes/#{theme_name}/images").to_s ]
    end

These should be moved into Breeze (and Breeze Commerce).