fix wiki page spec for rails 3

Change-Id: If89faa2ad16eb7846975528cda98cb24bd3f4902
Reviewed-on: https://gerrit.instructure.com/29693
Reviewed-by: Jon Willesen <jonw@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Cody Cutrer 2014-02-05 15:48:25 -07:00
parent f34511913a
commit 576143d795
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class WikiPage < ActiveRecord::Base
end
def context_module_action(user, context, action)
self.context_module_tags.find_all_by_context_id_and_context_type(context.id, context.class.to_s).each do |tag|
self.context_module_tags.where(context_id: context, context_type: context.class.base_ar_class.name).each do |tag|
tag.context_module_action(user, action)
end
end