use correct route for collaboration subclasses

fixes CNVS-20443

use repro step on the ticket for testing

Change-Id: Ie5011410108cf5ae8b0e90d827b2bf2017b1f0f7
Reviewed-on: https://gerrit.instructure.com/54220
Tested-by: Jenkins
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
Product-Review: Matthew Wheeler <mwheeler@instructure.com>
This commit is contained in:
Joel Hough 2015-05-13 14:13:36 -06:00
parent 6636445f69
commit 4050454391
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<% define_content :link do %>
<%= polymorphic_url([asset.collaboration.context, asset.collaboration]) %>
<%= polymorphic_url([asset.collaboration.context, asset.collaboration.becomes(Collaboration)]) %>
<% end %>
<% define_content :subject do %>

View File

@ -1,5 +1,5 @@
<% define_content :link do %>
<%= polymorphic_url([asset.collaboration.context, asset.collaboration]) %>
<%= polymorphic_url([asset.collaboration.context, asset.collaboration.becomes(Collaboration)]) %>
<% end %>
<% define_content :subject do %>

View File

@ -1,5 +1,5 @@
<% define_content :link do %>
<%= polymorphic_url([asset.collaboration.context, asset.collaboration]) %>
<%= polymorphic_url([asset.collaboration.context, asset.collaboration.becomes(Collaboration)]) %>
<% end %>
<% define_content :subject do %>

View File

@ -1,4 +1,4 @@
<% define_content :link do -%>
<%= polymorphic_url([asset.collaboration.context, asset.collaboration]) %>
<%= polymorphic_url([asset.collaboration.context, asset.collaboration.becomes(Collaboration)]) %>
<% end -%>
<%= t :body, "Canvas Alert - Collaboration Invite: %{document}, %{course_or_group}", :document => asset.collaboration.title, :course_or_group => asset.collaboration.context.name %>