Matchers specified in config.assets.precompile (also referred to as 'filters' in the Sprockets internals) are called on each asset in the assets load path and should return a boolean expression. The String used in ThemeFinder is truthy. Because matchers are [OR'd][1], this was causing all assets to precompiled. * Use a lambda rather than Proc to ensure arity is checked. [1]:https://github.com/sstephenson/sprockets/blob/2.x/lib/sprockets/base.rb#L421 Signed-off-by: Alex Coles <alex@alexbcoles.com>pull/1032/head
parent
3d7ec71e75
commit
265c30a4a6
Loading…
Reference in new issue