Sha256: cd9bc9a33654193c205d848e7001a12508958a719c2a86712b47c32c47127720

Contents?: true

Size: 364 Bytes

Versions: 68

Compression:

Stored size: 364 Bytes

Contents

class Acolyte
  include Mongoid::Document
  include Mongoid::Attributes::Dynamic
  field :status
  field :name

  embeds_many :versions, as: :memorable
  belongs_to :church

  default_scope ->{ asc(:name) }
  scope :active, ->{ where(status: "active") }
  scope :named, ->{ where(:name.exists => true) }

  def callback_test?
    name == "callback-test"
  end
end

Version data entries

68 entries across 63 versions & 3 rubygems

Version Path
mongoid-7.0.13 spec/app/models/acolyte.rb
mongoid-7.0.12 spec/app/models/acolyte.rb
mongoid-6.4.8 spec/app/models/acolyte.rb
mongoid-7.0.11 spec/app/models/acolyte.rb
mongoid-7.0.10 spec/app/models/acolyte.rb
mongoid-6.4.7 spec/app/models/acolyte.rb
mongoid-6.4.5 spec/app/models/acolyte.rb
mongoid-7.0.8 spec/app/models/acolyte.rb
mongoid-7.0.7 spec/app/models/acolyte.rb
mongoid-7.0.6 spec/app/models/acolyte.rb
mongoid-5.4.1 spec/app/models/acolyte.rb
mongoid-7.0.5 spec/app/models/acolyte.rb
mongoid-7.0.4 spec/app/models/acolyte.rb
mongoid-6.4.4 spec/app/models/acolyte.rb
mongoid-7.0.3 spec/app/models/acolyte.rb
mongoid-6.4.2 spec/app/models/acolyte.rb
mongoid-7.0.2 spec/app/models/acolyte.rb
mongoid-7.0.1 spec/app/models/acolyte.rb
mongoid-6.4.1 spec/app/models/acolyte.rb
mongoid-5.4.0 spec/app/models/acolyte.rb