Fixed #15 allow_nil issue in rails 3.1 later release

Fixed issue #15 allow_nil not working?