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.1.7 models/parent.rb
mongocore-0.1.6 models/parent.rb
mongocore-0.1.5.6 models/parent.rb
mongocore-0.1.5.5 models/parent.rb
mongocore-0.1.5.4 models/parent.rb
mongocore-0.1.5.3 models/parent.rb
mongocore-0.1.5.2 models/parent.rb
mongocore-0.1.5.1 models/parent.rb
mongocore-0.1.5 models/parent.rb
mongocore-0.1.4.1 models/parent.rb
mongocore-0.1.4 models/parent.rb
mongocore-0.1.3 models/parent.rb
mongocore-0.1.2 models/parent.rb
mongocore-0.1.1 models/parent.rb