Fix the wiki links in the activity view. #469

Contributed by Artem Naluzhnyy.
This commit is contained in:
Felix Schäfer 2011-06-16 20:56:48 +02:00
parent 9ce7fd4230
commit 85c3d38d24
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class WikiContent < ActiveRecord::Base
acts_as_journalized :event_type => 'wiki-page',
:event_title => Proc.new {|o| "#{l(:label_wiki_edit)}: #{o.page.title} (##{o.version})"},
:event_url => Proc.new {|o| {:controller => 'wiki', :id => o.page.wiki.project_id, :page => o.page.title, :version => o.version}},
:event_url => Proc.new {|o| {:controller => 'wiki', :action => 'show', :id => o.page.title, :project_id => o.page.wiki.project, :version => o.version}},
:activity_type => 'wiki_edits',
:activity_permission => :view_wiki_edits,
:activity_find_options => { :include => { :page => { :wiki => :project } } }