Are you sure this is working w/ embedded documents? It's been
absurdly helpful for me so far, but I've got a problem now with it not
updating embedded schemas.
Here's what I have:
class User
include Mongoid::Document
include Mongoid::Timestamps
embeds_many :interests, :class_name => "Interest"
end
class Interest
include Mongoid::Document
embedded_in :user, :inverse_of => :interests
identity :type => String
field :name
field :category
field :created_by, :default => "fb"
attr_accessible :name, :category, :_id, :created_by
end
The new field is :created_by, but the field isn't being created and
initialized.
Thanks
-Jeff