summaryrefslogtreecommitdiffstats
path: root/app/models/journal.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-27 17:28:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-27 17:28:22 +0000
commita96421019f3a813b93798e4ec8099edd09f8a661 (patch)
tree102827aea563063b29ae21800bfff88fb16550f9 /app/models/journal.rb
parentd723bea502faedb218f929b40849935d61c577e2 (diff)
downloadredmine-a96421019f3a813b93798e4ec8099edd09f8a661.tar.gz
redmine-a96421019f3a813b93798e4ec8099edd09f8a661.zip
Search engines now supports pagination.
Results are sorted in reverse chronological order. git-svn-id: http://redmine.rubyforge.org/svn/trunk@766 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r--app/models/journal.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb
index f70a69863..6e7632e73 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -23,4 +23,9 @@ class Journal < ActiveRecord::Base
belongs_to :user
has_many :details, :class_name => "JournalDetail", :dependent => :delete_all
+
+ acts_as_searchable :columns => 'notes',
+ :include => :issue,
+ :project_key => "#{Issue.table_name}.project_id",
+ :date_column => "#{Issue.table_name}.created_on"
end