On Feb 13, 10:47 am, Jeremy Evans <[email protected]> wrote:
> On Feb 13, 8:16 am, Michael Gliwinski <Michael.Gliwin...@henderson-
>
> Assuming you are using models, this may work as a global setting:
>
>   class Sequel::Model
>     def [](v)
>       case s = super
>       when String
>         s.strip
>       else
>         s
>       end
>     end
>   end
>

Or if you just need this behavior in specific models you can use the
string_stripper plugin. 
http://sequel.rubyforge.org/rdoc-plugins/classes/Sequel/Plugins/StringStripper.html

Rohit

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to