Module: Redmine::Search::Controller

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

Defined Under Namespace

Modules: ClassMethods

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



38
39
40
# File 'lib/redmine/search.rb', line 38

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

- (Object) default_search_scope

Returns the default search scope according to the current action



66
67
68
69
# File 'lib/redmine/search.rb', line 66

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

- (Object) default_search_scopes



61
62
63
# File 'lib/redmine/search.rb', line 61

def default_search_scopes
  self.class.default_search_scopes
end