Provide an option to make the filter non-destructive
Reported by Adam Bair | June 1st, 2008 @ 03:51 AM | in v0.1
Currently data is modified before validation and saved to the database in the modified form. There should be an option to allow the filter be used without modifying the original data:
Store the dirty string (origial) in the database.
Call it with post.body, post.body.original, post.body.clean.
Comments and changes to this ticket
-
Adam Bair June 1st, 2008 @ 04:02 AM
- Assigned user cleared.
-
Adam Bair June 4th, 2008 @ 12:55 PM
- State changed from new to resolved
(from [a8cd4bde1691ad95d05b0e594492c4192ec00024]) Fu-fu now has a non-destructive method, and there was much rejoicing. [#4 state:resolved]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Fu-fu: The Profanity Filter for Rails.
http://github.com/adambair/fu-fu/tree/master