lib/hs/loaders/chapter_loader.rb in hs-cli-0.2.0 vs lib/hs/loaders/chapter_loader.rb in hs-cli-0.2.1
- old
+ new
@@ -13,10 +13,14 @@
end
private
def create_chapter(course, data) # rubocop:disable Metrics/MethodLength
- chapter = HS::Chapter.new(course, slug: data[:slug])
+ chapter = HS::Chapter.new(
+ course,
+ slug: data[:slug],
+ review_status: data[:review_status]
+ )
data[:_children].each do |child|
case child[:_name]
when :title
chapter.title = get_text(child)