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