sync token lookup
This commit is contained in:
@@ -26,6 +26,11 @@ class Lookup < ApplicationRecord
|
||||
return lookup.value
|
||||
end
|
||||
|
||||
def self.get_sync_token
|
||||
lookup = Lookup.find_by_lookup_type('sync_token')
|
||||
return lookup.value
|
||||
end
|
||||
|
||||
def self.collection_of(type)
|
||||
Lookup.select("name, value").where("lookup_type" => type ).map { |l| [l.name, l.value] }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user