lib/hackety_hack/lessons.rb in hackety_hack-lessons-1.0.3 vs lib/hackety_hack/lessons.rb in hackety_hack-lessons-1.1.0
- old
+ new
@@ -1,6 +1,8 @@
require 'hackety_hack/lessons/version'
+require 'hackety_hack/lessons/rails/engine' if defined?(Rails)
+
require 'metadown'
module HacketyHack
module Lessons
extend self
@@ -23,8 +25,12 @@
all.find{|data| data.metadata["slug"] == slug}
end
def all
FILE_LIST.collect{|file| Metadown.render(File.read(file)) }
+ end
+
+ def static_directory
+ "#{File.dirname(__FILE__)}/../../static"
end
end
end