fix model build associations without scope in rails 4