lib/hackety_hack/lessons.rb in hackety_hack-lessons-1.1.0 vs lib/hackety_hack/lessons.rb in hackety_hack-lessons-1.1.1
- old
+ new
@@ -24,10 +24,10 @@
def find_by_slug(slug)
all.find{|data| data.metadata["slug"] == slug}
end
def all
- FILE_LIST.collect{|file| Metadown.render(File.read(file)) }
+ FILE_LIST.collect{|file| Metadown.render(File.read(file, :encoding => "utf-8")) }
end
def static_directory
"#{File.dirname(__FILE__)}/../../static"
end