Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add lib and vendor to loose assets. #34

Closed
wants to merge 1 commit into from

2 participants

@brandon-beacher
  • Some gems locate loose assets in lib/assets or vendor/assets
  • This change picks them up so they are processed during rake assets:precompile

Examples:

https://github.com/thomas-mcdonald/bootstrap-sass/tree/master/vendor/assets/images
https://github.com/joliss/jquery-ui-rails/tree/master/vendor/assets/images

@brandon-beacher brandon-beacher Add lib and vendor to loose assets.
* Some gems locate loose assets in lib/assets or vendor/assets
* This change picks them up so they are processed during `rake assets:precompile`

Examples:

* https://github.com/thomas-mcdonald/bootstrap-sass/tree/master/vendor/assets/imageshttps://github.com/joliss/jquery-ui-rails/tree/master/vendor/assets/images
786c2de
@josh
Collaborator

Those are intentionally excluded.

rails/rails#7968

@josh josh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 5, 2013
  1. @brandon-beacher

    Add lib and vendor to loose assets.

    brandon-beacher authored
    * Some gems locate loose assets in lib/assets or vendor/assets
    * This change picks them up so they are processed during `rake assets:precompile`
    
    Examples:
    
    * https://github.com/thomas-mcdonald/bootstrap-sass/tree/master/vendor/assets/imageshttps://github.com/joliss/jquery-ui-rails/tree/master/vendor/assets/images
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sprockets/railtie.rb
View
2  lib/sprockets/railtie.rb
@@ -36,7 +36,7 @@ def assets
module Sprockets
class Railtie < ::Rails::Railtie
LOOSE_APP_ASSETS = lambda do |path, filename|
- filename =~ /app\/assets/ && !%w(.js .css).include?(File.extname(path))
+ filename =~ /(app|lib|vendor)\/assets/ && !%w(.js .css).include?(File.extname(path))
end
class OrderedOptions < ActiveSupport::OrderedOptions
Something went wrong with that request. Please try again.