summaryrefslogtreecommitdiffstats
path: root/app/models/wiki_page.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-27 16:27:06 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-27 16:27:06 +0000
commite9efa5b9814bbeddd9956b8478ed26af02b0eeca (patch)
treed2b8c54194c7410edd114483d3645d9945aff17a /app/models/wiki_page.rb
parent70bf0706b2f7933f72cbd4daab8e43b0ac9de4e9 (diff)
downloadredmine-e9efa5b9814bbeddd9956b8478ed26af02b0eeca.tar.gz
redmine-e9efa5b9814bbeddd9956b8478ed26af02b0eeca.zip
Refactor: use :id instead of :page when linking to Wiki Pages
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4296 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r--app/models/wiki_page.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index d489ec015..b65da2b77 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -28,7 +28,7 @@ class WikiPage < ActiveRecord::Base
acts_as_event :title => Proc.new {|o| "#{l(:label_wiki)}: #{o.title}"},
:description => :text,
:datetime => :created_on,
- :url => Proc.new {|o| {:controller => 'wiki', :action => 'show', :project_id => o.wiki.project, :page => o.title}}
+ :url => Proc.new {|o| {:controller => 'wiki', :action => 'show', :project_id => o.wiki.project, :id => o.title}}
acts_as_searchable :columns => ['title', 'text'],
:include => [{:wiki => :project}, :content],
@@ -139,7 +139,7 @@ class WikiPage < ActiveRecord::Base
parent_page = t.blank? ? nil : self.wiki.find_page(t)
self.parent = parent_page
end
-
+
protected
def validate