Sha256: 82862776d549b99a12152d0242fe11baf7e2f21dd91e031ecaaa83d897f47866

Contents?: true

Size: 319 Bytes

Versions: 10

Compression:

Stored size: 319 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

10 entries across 10 versions & 3 rubygems

Version Path
mongoid-3.1.7 spec/app/models/acolyte.rb
mongoid-3.1.6 spec/app/models/acolyte.rb
mongoid-3.1.5 spec/app/models/acolyte.rb
mongoid-paranoia-0.3.0 spec/app/models/acolyte.rb
mongoid-paranoia-0.2.1 spec/app/models/acolyte.rb
mongoid-versioning-0.2.0 spec/app/models/acolyte.rb
mongoid-paranoia-0.2.0 spec/app/models/acolyte.rb
mongoid-paranoia-0.1.1 spec/app/models/acolyte.rb
mongoid-versioning-0.1.0 spec/app/models/acolyte.rb
mongoid-paranoia-0.1.0 spec/app/models/acolyte.rb