Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add docs

  • Loading branch information...
commit 97e469dad2b674a5fb2bdf7e780f0298af57911a 1 parent 74a9b7b
Ryan Sonnek authored
Showing with 21 additions and 2 deletions.
  1. +17 −1 README.rdoc
  2. +0 −1  VERSION
  3. +4 −0 VERSION.yml
18 README.rdoc
View
@@ -1,6 +1,22 @@
= acts_as_stripped
-Description goes here.
+Simple utility to strip whitespace from string attributes.
+
+= Installation
+
+sudo gem install wireframe-acts_as_stripped
+
+= Usage
+
+# strip whitespace from *all* string attributes
+class User < ActiveRecord::Base
+ acts_as_stripped
+end
+
+# strip whitespace from *select* string attributes
+class Post < ActiveRecord::Base
+ acts_as_stripped :title, :summary
+end
== Copyright
1  VERSION
View
@@ -1 +0,0 @@
-0.0.0
4 VERSION.yml
View
@@ -0,0 +1,4 @@
+---
+:major: 0
+:minor: 1
+:patch: 1
Please sign in to comment.
Something went wrong with that request. Please try again.