Sha256: 38ea1d3d079b7534f34e5630185eeb85f9e3e9a8e147b3c3e64e3ce33f21a00c

Contents?: true

Size: 197 Bytes

Versions: 17

Compression:

Stored size: 197 Bytes

Contents

# frozen_string_literal: true

module ActiveArchive
  module Scopes

    def archived
      where.not(archived_at: nil)
    end

    def unarchived
      where(archived_at: nil)
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
active_archive-6.1.0 lib/active_archive/scopes.rb
active_archive-6.0.2 lib/active_archive/scopes.rb
active_archive-6.0.1 lib/active_archive/scopes.rb
active_archive-6.0.0 lib/active_archive/scopes.rb
active_archive-5.3.0 lib/active_archive/scopes.rb
active_archive-5.2.2 lib/active_archive/scopes.rb
active_archive-5.2.1 lib/active_archive/scopes.rb
active_archive-5.2.0 lib/active_archive/scopes.rb
active_archive-5.1.7 lib/active_archive/scopes.rb
active_archive-5.1.6 lib/active_archive/scopes.rb
active_archive-5.1.5 lib/active_archive/scopes.rb
active_archive-5.1.4 lib/active_archive/scopes.rb
active_archive-5.1.3 lib/active_archive/scopes.rb
active_archive-5.1.2 lib/active_archive/scopes.rb
active_archive-5.1.1 lib/active_archive/scopes.rb
active_archive-5.1.0 lib/active_archive/scopes.rb
active_archive-5.0.0 lib/active_archive/scopes.rb