Sha256: e2a8ead5d64140585d6a9aa0f990a744b1e637178b83095670f2435435eecc60

Contents?: true

Size: 240 Bytes

Versions: 10

Compression:

Stored size: 240 Bytes

Contents

class Document < ActiveRecord::Base
  scope :with_error, proc { where(status: :error) }
  scope :with_success, proc { where(status: :success) }
  scope :type_a, proc { where(doc_type: :a) }
  scope :type_b, proc { where(doc_type: :b) }
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
mercy-1.6.0 spec/support/models/document.rb
mercy-1.5.0 spec/support/models/document.rb
mercy-1.3.0 spec/support/models/document.rb
bidu-mercy-1.3.0 spec/support/models/document.rb
bidu-house-1.3.0 spec/support/models/document.rb
bidu-house-1.2.0 spec/support/models/document.rb
bidu-house-1.1.0 spec/support/models/document.rb
bidu-house-1.0.0 spec/support/models/document.rb
bidu-house-0.2.1 spec/support/models/document.rb
bidu-house-0.2.0 spec/support/models/document.rb