Fixed unwanted changes

I propose to check if attribute is safe, because this link will broke record `/post/toggle/?id=1&attribute=id`
Merge pull request #7 from slavcodev/patch-1

Fixed unwanted changes