Module: RedmineExtensions::ApplicationControllerPatch::ClassMethods

Defined in:
lib/redmine_extensions/redmine_patches/controllers/application_controller_patch.rb

Instance Method Summary collapse

Instance Method Details

#easy_extensions?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/redmine_extensions/redmine_patches/controllers/application_controller_patch.rb', line 44

def easy_extensions?
  Redmine::Plugin.installed?(:easy_extensions)
end

#include_query_helpersObject



48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/redmine_extensions/redmine_patches/controllers/application_controller_patch.rb', line 48

def include_query_helpers
  if easy_extensions?
    helper :easy_query
    include EasyQueryHelper
  else
    helper :queries
    include QueriesHelper
  end

  helper :sort
  include SortHelper
end