Sha256: eb0017947fe78b1669a4b8a606cfc4b0931d86705ba36289c5a95b79c7c216f9

Contents?: true

Size: 325 Bytes

Versions: 8

Compression:

Stored size: 325 Bytes

Contents

class Acolyte
  include Mongoid::Document
  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

8 entries across 8 versions & 2 rubygems

Version Path
mongoid-paranoia-1.1.0 spec/app/models/acolyte.rb
mongoid-paranoia-1.0.1 spec/app/models/acolyte.rb
mongoid-paranoia-1.0.0 spec/app/models/acolyte.rb
mongoid-versioning-1.0.0 spec/app/models/acolyte.rb
mongoid-paranoia-1.0.0.beta2 spec/app/models/acolyte.rb
mongoid-versioning-1.0.0.beta2 spec/app/models/acolyte.rb
mongoid-paranoia-1.0.0.beta1 spec/app/models/acolyte.rb
mongoid-versioning-1.0.0.beta1 spec/app/models/acolyte.rb