An ActiveModel extension that automatically strips all attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.
MIT License
Published by rmm5t over 2 years ago
Published by rmm5t almost 3 years ago
Published by rmm5t over 4 years ago
NOTE: This fix is backwards incompatible, but a future version will avoid stripping frozen values altogether.
Published by rmm5t over 5 years ago
:if
:unless
Published by rmm5t almost 6 years ago
Published by rmm5t over 8 years ago
:collapse_spaces
Published by rmm5t about 9 years ago
Published by rmm5t over 9 years ago
:replace_newlines
StripeAttributes.strip
String#strip
Collection of useful modules for Rails.
Easily create Ruby class hierarchies that support nested attributes, type conversion, serializati...
Nicer way to map your hashes
a small ActiveRecord plugin that strips ASCII control chars from string attributes before saving
Alba is a JSON serializer for Ruby, JRuby and TruffleRuby.
Minimalist validation BDD for ActiveModel specs
Simple and lightweight Virtus analog.
Adds matcher support to minitest without all the other RSpec-style expectation "infections."
An opinionated Rails toolkit for code formatting, logging, testing, etc
Active Record without Database
Generators, helpers and extensions enabling complex sinatra apps
Make Rails Use MiniTest::Spec!
Old school have_tag, with_tag(and more) matchers for rspec 3 (Nokogiri powered)
Plain Old Ruby Template Handler
Simple and composable validation and coercion of data structures