From 6afe3833b16dbf20d3116d446e4ce136c631f65c Mon Sep 17 00:00:00 2001 From: znerol Date: Sun, 15 Nov 2020 13:04:55 +0100 Subject: [PATCH] Support indexing attachments using sunspot_cell --- Gemfile | 1 + lib/redmine_redsun/attachment_patch.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index ef6d548..ccb429a 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ gem 'sunspot_rails', '2.5.0' +gem 'sunspot_cell', :git => "https://github.com/waterfield/sunspot_cell.git", :branch => "2.3.0" gem 'will_paginate', '~> 3.1.3' group :development do diff --git a/lib/redmine_redsun/attachment_patch.rb b/lib/redmine_redsun/attachment_patch.rb index 584eb9c..9deb97e 100644 --- a/lib/redmine_redsun/attachment_patch.rb +++ b/lib/redmine_redsun/attachment_patch.rb @@ -52,6 +52,8 @@ def self.included(base) # :nodoc: # Name of Project string :project_name, stored: true + # Content + attachment :diskfile end end end