将新闻添加进活动

This commit is contained in:
fanqiang 2013-09-15 09:33:51 +08:00
parent 11370329dd
commit 50894d8950
2 changed files with 2 additions and 1 deletions

View File

@ -450,6 +450,7 @@ class ProjectsController < ApplicationController
"show_files" => true,
"show_documents" => true,
"show_messages" => true,
"show_news" => true,
"show_bids" => true
}
@date_to ||= Date.today + 1

View File

@ -51,7 +51,7 @@ class Bid < ActiveRecord::Base
:author => :author,
:url => Proc.new {|o| {:controller => 'bids', :action => 'show', :id => o.id}}
acts_as_activity_provider :find_options => {:include => [:project, :author]},
acts_as_activity_provider :find_options => {:include => [:projects, :author]},
:author_key => :author_id