problem
If you specify a relationship overlapping with a field there will be problems. Maybe one should add some simple exception explicitly station the problem to save people some time, as I imagine this being a fairly frequent error. New to Rails, so I don't know if this should be handled in Mongoid or perhaps in a rails component? Could be.
class example
class Company
include Mongoid::Document
// these two will conflict
referenced_in :country
field :country, :type => String
end
error
undefined method `target' for "#<Country:0x10224ae48>":String