update for order process
Add activereocrd-import gem for bulk insert
This commit is contained in:
@@ -57,7 +57,7 @@ class Lookup < ApplicationRecord
|
||||
end
|
||||
|
||||
def self.collection_of(type)
|
||||
Lookup.select("name, value").where("lookup_type" => type ).map { |l| [l.name, l.value] }
|
||||
Lookup.where("lookup_type" => type ).pluck("name, value")
|
||||
end
|
||||
|
||||
def self.create_shift_sale_lookup
|
||||
|
||||
Reference in New Issue
Block a user