Skip to content

Commit

Permalink
Merge pull request #2340 from openstax/fix_serialized_fragments
Browse files Browse the repository at this point in the history
Added compatibility layer for pages with serialized fragments
  • Loading branch information
nathanstitt authored Jul 8, 2021
2 parents e5365d6 + 66daf1a commit be62dd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/subsystems/content/models/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,8 @@ def fragment_splitter
)
end
end

# Compatibility: Many existing pages have serialized fragments saved as OpenStax::Cnx::V1::Fragment
module OpenStax::Cnx
V1 = ::OpenStax::Content
end

0 comments on commit be62dd1

Please sign in to comment.