mongoid/mongoid — comment on commit 216314d49fba340812a12efe071698baeef06f32
File:  line 0
By romanbsd:

@durran - I'm using mongo for radius database, therefore the naming of the fields is imposed by radius. And the collection is used by other (non-ruby) components, therefore the naming cannot be really changed. I really hope that you don't enforce "standard naming", as this will break it for good :)
Another thought - what if the :foreign_key will accept a field name rather than attribute name, e.g. I'll define the field with:
field('parent-id', :as => 'parent_id'), and then belongs_to :nas, :foreign_key => :parent_id