Sha256: 8a04c8d78c5a2ac4870c011ee790a48cf4ede7ff6ab078765a64c72f71c6b437

Contents?: true

Size: 166 Bytes

Versions: 9

Compression:

Stored size: 166 Bytes

Contents

module ActiveArchive
  module Scopes

    def archived
      where.not(archived_at: nil)
    end

    def unarchived
      where(archived_at: nil)
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_archive-4.0.7 lib/active_archive/scopes.rb
active_archive-4.0.6 lib/active_archive/scopes.rb
active_archive-4.0.5 lib/active_archive/scopes.rb
active_archive-4.0.4 lib/active_archive/scopes.rb
active_archive-4.0.3 lib/active_archive/scopes.rb
active_archive-4.0.2 lib/active_archive/scopes.rb
active_archive-4.0.1 lib/active_archive/scopes.rb
active_archive-4.0.0 lib/active_archive/scopes.rb
active_archive-3.0.0 lib/active_archive/scopes.rb