Got it! Thank you Jeremy. I modified my User model to the following and it
now works. FYI, it would be nice to see this tidbit in the plugin
documentation itself. Thanks!
class User < Sequel::Model(APPDB[:users])
def before_validation
super
sanitize_params
end
private
def sanitize_params
self.first_name = first_name.sanitize!
self.last_name = last_name.sanitize!
end
end
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/0c8c14b3-21de-48f9-9b38-4821fb873936o%40googlegroups.com.