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