添加注释,修改变量命名

This commit is contained in:
lizanle 2015-01-27 16:32:27 +08:00
parent 475ef12cd5
commit 43e9f738c0
1 changed files with 5 additions and 2 deletions

View File

@ -77,9 +77,12 @@ module Redmine
@scope = Redmine::Activity.default_event_types
end
# Time 2015-01-27 16:31:58
# Author lizanle
# Description 用from to 更加浅显易懂
# Returns an array of events for the given date range
# sorted in reverse chronological order
def events(days = nil, created_time = nil, options={})
def events(from = nil, to = nil, options={})
e = []
@options[:limit] = options[:limit]
# modify by nwb
@ -87,7 +90,7 @@ module Redmine
@scope.each do |event_type|
constantized_providers(event_type).each do |provider|
e += provider.find_events(event_type, @user, days, created_time, @options)
e += provider.find_events(event_type, @user, from, to, @options)
end
end