lib/skellington/template.rb in skellington-0.4.0 vs lib/skellington/template.rb in skellington-0.4.1

- old
+ new

@@ -6,10 +6,10 @@ end def outpath @outpath ||= begin subs = @generator.files[@name]['outpath'].split '/' - @outpath = "#{@generator.path}/#{@generator.send(subs[1].to_sym)}/#{@name.sub(subs[0], @generator.send(subs[1].to_sym))}" + @outpath = "#{@generator.path}/#{@generator.send(subs[1].to_sym)}/#{@name.gsub(subs[0], @generator.send(subs[1].to_sym))}" rescue NoMethodError @outpath = "#{@generator.path}/#{@generator.wormname}/#{@name}" end end