| Class | ContentGroupToItemMap |
| In: |
app/models/content_group_to_item_map.rb
|
| Parent: | ActiveRecord::Base |
API for interaction with the database table ‘content_group_to_item_map’, and it‘s related data model.
Determine the maximum value of the ‘updated_on’ field for this table, comparing the values of all rows for this project host.
# File app/models/content_group_to_item_map.rb, line 18
18: def self.last_modified (
19: group_ids
20: )
21: max = Time.at(0)
22:
23: for group_id in group_ids
24: if (map = find_by_content_group_id(group_id))
25: max = map.updated_on if (map.updated_on > max)
26: end
27: end
28:
29: max
30: end