diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 27ab4f5..92b72af 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -30,7 +30,7 @@ class WikiPage < ActiveRecord::Base :datetime => :created_on, :url => Proc.new {|o| {:controller => 'wiki', :action => 'show', :project_id => o.wiki.project, :id => o.title}} - acts_as_searchable :columns => ['title', 'text'], + acts_as_searchable :columns => ['title', "#{WikiContent.table_name}.text"], :include => [{:wiki => :project}, :content], :permission => :view_wiki_pages, :project_key => "#{Wiki.table_name}.project_id"