deprecated: proxy_owner -> proxy_association.owner

This only works inside functions enhancing the association. Otherwise you want to use record.association(:profiles).owner instead.

http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#label-Association+extensions