module Synchronisable::Model::Scopes

Public Instance Methods

imported() click to toggle source
# File lib/synchronisable/model/scopes.rb, line 12
def imported
  includes(:import)
    .where.not(imports: { synchronisable_id: nil })
    .references(:imports)
end
Also aliased as: with_import
not_imported() click to toggle source
# File lib/synchronisable/model/scopes.rb, line 6
def not_imported
  includes(:import)
    .where(imports: { synchronisable_id: nil })
    .references(:imports)
end
Also aliased as: without_import
with_import()
Alias for: imported
without_import()
Alias for: not_imported