Trimmer Plugin
Dependency :
compile ":trimmer:0.1"
Summary
Trim all String input + convert an textinput that contains only blanks into null.
Installation
grails install-plugin trimmer
Description
Trimmer Plugin - Trim all inputs
Did you ever wish to easily avoid leading and trailing spaces from being persisted in your DB by bad inputs ?
Then this plugin is for you.Basically I think this plugin is needed in any serious grails application out there :)Installation
Simply install via BuildConfig.groovy or withgrails install-plugin trimmer
Please try using BuildConfig.groovy as the later is deprecated.All inputs will be trimmed and inputs that consist of blanks only will be converted to null.