1, add polymorphic check for the has_one association
Merge pull request #7 from leomayleomay/polymorhphic

1, add polymorphic check for the has_one association