lib/skellington/template.rb in skellington-0.1.3 vs lib/skellington/template.rb in skellington-0.1.4

- old
+ new

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