Skip to content

Instantly share code, notes, and snippets.

View simmogs's full-sized avatar

Graeme Simpson simmogs

View GitHub Profile
@kasima
kasima / gist:830974
Created February 17, 2011 04:24
Mongoid destroy references_and_referenced_in_many bug
class Game
include Mongoid::Document
field :title
references_and_referenced_in_many :players
end
class Player
include Mongoid::Document
field :name