class OwnerGroup < Group def match_user_on_record?(user, record) return false if user.nil? user == record.owner rescue false end end