lib/rail/processor/coffee_script.rb in rail-0.0.7 vs lib/rail/processor/coffee_script.rb in rail-0.0.8
- old
+ new
@@ -36,10 +36,10 @@
output.join
end
def find_requirement(name, referrer)
- assets = [ name, "#{ name }.coffee", "#{ name }.js.coffee" ]
+ assets = [name, "#{name}.coffee", "#{name}.js.coffee"]
if name =~ /^\.\// # relative?
path = File.dirname(referrer)
assets.each do |asset|
filename = File.join(path, asset)