README.md in artdeco-1.2.0 vs README.md in artdeco-1.2.1
- old
+ new
@@ -45,16 +45,16 @@
Artdeco.decorate(user, self, decorator: Customer)
# or
- Artdeco.decorate(user, self, decorator: [ Customer, Admin ] )
+ Artdeco.decorate(user, self, decorators: [ Customer, Admin ] )
Also works for enumerations (anything which responds to :map):
+
@articles = Article.all
Artdeco.decorate(@articles, self)
For conveniance decorated objects may decorate other objects:
Artdeco.decorate(order, self)
-
order.decorate(shopping_card)