If I may guess: the model you define this on contains the column 'user_id', which is the foreign key of this relation. Which means this must be a belongs_to relation, not a has_one.
Also, in certain situations you might have a problem with the return definition that is missing from the User model. If that is the case you need to overload it in the app, and add it (do not change the original in the package).