lib/classy_assets.rb in classy_assets-0.1.0 vs lib/classy_assets.rb in classy_assets-0.1.1
- old
+ new
@@ -86,10 +86,10 @@
dir_names
end
def self.sprockets
@sprockets ||= Sprockets::Environment.new(root_path)
- asset_paths.each { |asset_path| @sprockets.append_path asset_path }
+ asset_paths.each { |asset_path| @sprockets.append_path asset_path unless @sprockets.paths.include? asset_path }
@sprockets
end
end
end