修改资源文件activity事件BUG

This commit is contained in:
nwb 2014-06-11 11:13:59 +08:00
parent b6c9415a4b
commit cb2c5960fc
1 changed files with 1 additions and 2 deletions

View File

@ -39,10 +39,9 @@ class Attachment < ActiveRecord::Base
acts_as_activity_provider :type => 'course_files',
:permission => :view_files,
:author_key => :author_id,
:find_options => {:select => "#{Attachment.table_name}.*",
:joins => "LEFT JOIN #{Course.table_name} ( #{Attachment.table_name}.container_type='Course' AND #{Attachment.table_name}.container_id = #{Course.table_name}.id )"}
:joins => "LEFT JOIN #{Course.table_name} ON ( #{Attachment.table_name}.container_type='Course' AND #{Attachment.table_name}.container_id = #{Course.table_name}.id )"}
acts_as_activity_provider :type => 'files',
:permission => :view_files,