lib/rail/processor/haml.rb in rail-0.0.7 vs lib/rail/processor/haml.rb in rail-0.0.8

- old
+ new

@@ -34,12 +34,12 @@ end private def find_layout(filename) - asset = "layouts/#{ filename.split('/')[-2] }" + asset = "layouts/#{filename.split('/')[-2]}" - [ "#{ asset }.haml", "#{ asset }.html.haml" ].each do |asset| + ["#{asset}.haml", "#{asset}.html.haml"].each do |asset| filename = pipeline.find(asset) return filename if filename end nil