fix typos of source comments at lib/redmine/hook.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@13068 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-04-07 08:05:35 +00:00
parent e806f8cc43
commit bf776b3304
1 changed files with 2 additions and 2 deletions

View File

@ -30,12 +30,12 @@ module Redmine
clear_listeners_instances clear_listeners_instances
end end
# Returns all the listerners instances. # Returns all the listener instances.
def listeners def listeners
@@listeners ||= @@listener_classes.collect {|listener| listener.instance} @@listeners ||= @@listener_classes.collect {|listener| listener.instance}
end end
# Returns the listeners instances for the given hook. # Returns the listener instances for the given hook.
def hook_listeners(hook) def hook_listeners(hook)
@@hook_listeners[hook] ||= listeners.select {|listener| listener.respond_to?(hook)} @@hook_listeners[hook] ||= listeners.select {|listener| listener.respond_to?(hook)}
end end