添加注释,修改变量命名

email_verify
lizanle 11 years ago
parent 475ef12cd5
commit 43e9f738c0

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

Loading…
Cancel
Save