lib/hackety_hack/lessons.rb in hackety_hack-lessons-1.0.0 vs lib/hackety_hack/lessons.rb in hackety_hack-lessons-1.0.1
- old
+ new
@@ -3,10 +3,10 @@
module HacketyHack
module Lessons
extend self
- FILE_LIST = Dir["content/*.md"]
+ FILE_LIST = Dir["#{File.dirname(__FILE__)}/../../content/*.md"]
def titles
all.collect{|data| data.metadata["title"]}
end