lib/slide_hero/code.rb in slide_hero-0.0.3 vs lib/slide_hero/code.rb in slide_hero-0.0.4
- old
+ new
@@ -9,10 +9,10 @@
abort "#{Dir.pwd}/#{code_file.call} not found"
end
def compile
Tilt::ERBTemplate.
- new(File.join(Gem.loaded_specs['slide_hero'].full_gem_path,
+ new(File.join(SlideHero.template_path,
'lib/slide_hero/views/code.html.erb')).render(self)
end
end
end