Xapian Easy search
This commit is contained in:
parent
7aeed17a94
commit
52a777cc3b
@ -40,4 +40,4 @@ module RedmineDmsf
|
||||
end
|
||||
|
||||
# Apply the patch
|
||||
ApplicationHelper.prepend RedmineDmsf::Patches::ApplicationHelperPatch
|
||||
ApplicationHelper.prepend RedmineDmsf::Patches::ApplicationHelperPatch if Redmine::Plugin.installed?('easy_extensions')
|
||||
|
||||
@ -37,4 +37,6 @@ module RedmineDmsf
|
||||
end
|
||||
|
||||
# Apply the patch
|
||||
XapianEasySearchHelper.prepend RedmineDmsf::Patches::XapianEasySearchHelperPatch
|
||||
if Redmine::Plugin.installed?('easy_extensions')
|
||||
XapianEasySearchHelper.prepend RedmineDmsf::Patches::XapianEasySearchHelperPatch
|
||||
end
|
||||
|
||||
32
lib/xapian_easy_search/base_mapper.rb
Normal file
32
lib/xapian_easy_search/base_mapper.rb
Normal file
@ -0,0 +1,32 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Redmine plugin for Document Management System "Features"
|
||||
#
|
||||
# Copyright © 2011 Vít Jonáš <vit.jonas@gmail.com>
|
||||
# Copyright © 2012 Daniel Munn <dan.munn@munnster.co.uk>
|
||||
# Copyright © 2011-23 Karel Pičman <karel.picman@kontron.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
if defined?(EasyExtensions)
|
||||
require 'xapian_easy_search/base_mapper'
|
||||
else
|
||||
module XapianEasySearch
|
||||
# Foo class
|
||||
class BaseMapper
|
||||
def foo; end
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -20,7 +20,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require 'xapian_easy_search/base_mapper'
|
||||
require('xapian_easy_search/base_mapper') if defined?(EasyExtensions)
|
||||
|
||||
module XapianEasySearch
|
||||
# DmsfFile mapper
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require 'xapian_easy_search/base_mapper'
|
||||
require('xapian_easy_search/base_mapper') if defined?(EasyExtensions)
|
||||
|
||||
module XapianEasySearch
|
||||
# DmsfFolder mapper
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user