Fix inputs after has_many.
Merge pull request #3549 from varyonic/fix_has_many

Fix inputs after has_many.