9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/timeline/controller_helper.rb', line 9
def track_timeline_activity(name, options={})
@name = name
@start_value = 0
@limit_records = (options[:limit_records] && options[:limit_records] > 30) ? options[:limit_records] : 30
@limit_days = (options[:limit_days] && options[:limit_days] > 30) ? options[:limit_days] : 30
@actor = options.delete :actor
@actor ||= :creator
@object = options.delete :object
@target = options.delete :target
@followers = options.delete :followers
@friends = options.delete :friends
@mentionable = options.delete :mentionable
@fields_for = {}
@extra_fields ||= nil
@merge_similar = options[:merge_similar] == true ? true : false
options[:verb] = name
add_activity(activity(verb: options[:verb]))
end
|