Skip to content

Commit

Permalink
Merge pull request #743 from concord-consortium/fix-interactive-editing
Browse files Browse the repository at this point in the history
convert old path helpers
  • Loading branch information
scytacki authored Aug 23, 2021
2 parents f297023 + abbd01b commit 7818958
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/services/itsi_authoring/editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def iframe_interactive_json(i, page)
image_url: i.image_url,
model_library_url: i.model_library_url,
authored_state: i.authored_state,
update_url: page_mw_interactive_path(page, i)
update_url: mw_interactive_path(i)
}
end

Expand Down
8 changes: 4 additions & 4 deletions app/views/shared/_embedded_editor_links.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
when "xhtml"
edit_embeddable_xhtml_path(embeddable)
when "mw_int"
edit_page_mw_interactive_path(page, embeddable)
edit_mw_interactive_path(embeddable)
when "managed_int"
edit_page_managed_interactive_path(page, embeddable)
edit_managed_interactive_path(embeddable)
when "image"
edit_page_image_interactive_path(page, embeddable)
edit_image_interactive_path(embeddable)
when "video"
edit_page_video_interactive_path(page, embeddable)
edit_video_interactive_path(embeddable)
else
raise "Unkown Embeddable type: #{type}"
end
Expand Down

0 comments on commit 7818958

Please sign in to comment.