Class ContentItemToGroupMap
In: app/models/content_item_to_group_map.rb
Parent: ActiveRecord::Base

API for interaction with the database table ‘content_item_to_group_map’, and it‘s related data model.

Methods

Public Class methods

Determine the maximum value of the ‘updated_on’ field for this table, comparing the values of all rows for this project host.

[Source]

    # File app/models/content_item_to_group_map.rb, line 16
16:   def self.last_modified (
17:     group_ids
18:   ) 
19:     max = Time.at(0)
20: 
21:     for group_id in group_ids
22:       if (map = find_by_content_group_id(group_id)) 
23:         max = map.updated_on if (map.updated_on > max)
24:       end
25:     end
26: 
27:     max
28:   end

[Validate]