Skip to content

Commit

Permalink
Travis trigger :)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasimir committed Sep 20, 2011
1 parent a1d16cb commit 203910c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This gem makes it easy to apply the decorator pattern to domain models in a Rail

### 1. Object Oriented Helpers

Why hate helpers? In Ruby/Rails we approach everything from an Object-Oriented perspective, then with helpers we get procedural.The job of a helper is to take in data and output a presentation-ready string. We can do that with a decorator.
Why hate normal helpers? In Ruby/Rails we approach everything from an Object-Oriented perspective, then with helpers we get procedural.The job of a helper is to take in data and output a presentation-ready string. We can do that with a decorator.

A decorator wraps an object with presentation-related accessor methods. For instance, if you had an `Article` object, then the decorator could override `.published_at` to use formatted output like this:

Expand Down

0 comments on commit 203910c

Please sign in to comment.