Sha256: dd1424f86aa460e98a2e7e47c3799f42773e3fd1919280a4c6b4027e214c2bd9

Contents?: true

Size: 447 Bytes

Versions: 34

Compression:

Stored size: 447 Bytes

Contents

class Parent
  include Mongocore::Document

  attr_accessor :list

  before :save do
    (@list ||= []) << 'before_save'
  end

  before :update do
    (@list ||= []) << 'before_update'
  end

  before :delete do
    (@list ||= []) << 'before_delete'
  end

  after :save do
    (@list ||= []) << 'after_save'
  end

  after :update do
    (@list ||= []) << 'after_update'
  end

  after :delete do
    (@list ||= []) << 'after_delete'
  end

end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
mongocore-0.5.1 models/parent.rb
mongocore-0.5.0 models/parent.rb
mongocore-0.4.5 models/parent.rb
mongocore-0.4.4 models/parent.rb
mongocore-0.4.3 models/parent.rb
mongocore-0.4.2 models/parent.rb
mongocore-0.4.1 models/parent.rb
mongocore-0.4.0 models/parent.rb
mongocore-0.3.2 models/parent.rb
mongocore-0.3.1.1 models/parent.rb
mongocore-0.3.1 models/parent.rb
mongocore-0.3.0 models/parent.rb
mongocore-0.2.5 models/parent.rb
mongocore-0.2.3 models/parent.rb
mongocore-0.2.2 models/parent.rb
mongocore-0.2.1 models/parent.rb
mongocore-0.2.0 models/parent.rb
mongocore-0.1.10 models/parent.rb
mongocore-0.1.9 models/parent.rb
mongocore-0.1.8 models/parent.rb