Add folder to asset pipeline path?

前端 未结 1 590
余生分开走
余生分开走 2020-12-28 17:18

We have a rails app that I recently updated from Rails 3.0 to Rails 3.2. This app services multiple clients. To customize it for each client, we have the directory app

相关标签:
1条回答
  • 2020-12-28 17:33

    Was able to do it in the application.rb:

    require "#{Rails.root}/app/models/settings.rb"
    config.assets.paths << "#{Rails.root}/app/themes/#{Settings.theme}/assets/stylesheets"
    config.assets.paths << "#{Rails.root}/app/themes/#{Settings.theme}/assets/images"
    config.assets.paths << "#{Rails.root}/app/themes/#{Settings.theme}/assets/javascripts"
    
    0 讨论(0)
提交回复
热议问题