rails/rails — Issue #3841: cannot distinguish two models In different namespace  
Author: s8186255
Created: 2011-12-03 08:49:59+00:00
State: open

my enviroment is rails 3.1.1 and mongoid
I have two models,one in /app/model,another in /app/model/app_dr,their name is the same 'Image' .
i have a controller : app/controllers/app_dr/test_controller.rb .when i use "Image.create :attachment=>params[app_dr_dr][:image]",I got error. The error display controller is using "AppDr::Image.create..."
when i change the Model name ,keep them different,all is ok.