Sha256: c65d68b4a289bd12b90ba77c4e5a8c11d8f3ff949b2cd2167a9050c8004c9d44

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 Bytes

Contents

= dm-trimmer

DataMapper plugin to remove leading and trailing blanks from property values.

Leading and trailing spaces on property values can be a problem. They're almost never wanted nor intended. In fact,
Oracle actually treats empty strings as NULL. That's not to say I necessarily think that the database should be messing
with our data mind you but it does show that at least someone agrees with me.

Here's an example of what happens when the plugin is installed:

	u = User.new

	u.name = "    Simon Harris   "	# => "Simon Harris"

  	u.name = "                   "	# => nil

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm-trimmer-0.1.0 README.rdoc