Module: Redmine::Search::Controller

Included in:
ApplicationController
Defined in:
lib/redmine/search.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#default_search_scopeObject

Returns the default search scope according to the current action

Since:

  • 0.9.0



165
166
167
168
# File 'lib/redmine/search.rb', line 165

def default_search_scope
  @default_search_scope ||= default_search_scopes[controller_name.to_sym][:actions][action_name.to_sym] ||
                            default_search_scopes[controller_name.to_sym][:default]
end

#default_search_scopesObject

Since:

  • 0.9.0



160
161
162
# File 'lib/redmine/search.rb', line 160

def default_search_scopes
  self.class.default_search_scopes
end