#325 fix: set belongs_to properly for namespaced controller and non namespaced model