Skip to content

Commit

Permalink
Fixing issue with deep paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyd committed Mar 19, 2024
1 parent 7a86003 commit f962396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/parser/content_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def parse_lesson(metadata, index)
end

def parse_segments(segment_yaml_file)
lesson_path = segment_yaml_file.split('/').first
lesson_path = Pathname.new(segment_yaml_file).dirname.to_s
lesson = load_yaml_file(apply_path(segment_yaml_file))

lesson[:segments].map do |segment|
Expand Down

0 comments on commit f962396

Please sign in to comment.