Module: Redmine::Search

Defined in:
lib/redmine/search.rb

Defined Under Namespace

Modules: Controller

Constant Summary

@@available_search_types =
[]

Class Method Summary collapse

Class Method Details

.map {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



23
24
25
# File 'lib/redmine/search.rb', line 23

def map(&block)
  yield self
end

.register(search_type, options = {}) ⇒ Object

Registers a search provider



28
29
30
31
# File 'lib/redmine/search.rb', line 28

def register(search_type, options={})
  search_type = search_type.to_s
  @@available_search_types << search_type unless @@available_search_types.include?(search_type)
end