Fixed allow_nil issue in rails 3.1 later release
Merge pull request #22 from sankaranarayanan/master

Fixed #15 allow_nil issue in rails 3.1 later release