class RawgentoModels::RemoteProduct

Public Class Methods

linked() click to toggle source
# File lib/rawgento_models/remote_product.rb, line 10
def self.linked
  self.where.not(local_product: nil)
end
name_ilike(name) click to toggle source

SQLite specific

# File lib/rawgento_models/remote_product.rb, line 19
def self.name_ilike name
  where('lower(name) LIKE ?', "%#{name.downcase}%")
end
unlinked() click to toggle source
# File lib/rawgento_models/remote_product.rb, line 14
def self.unlinked
  self.where(local_product: nil)
end