doc update

This commit is contained in:
John Bintz 2012-10-01 09:30:15 -04:00
parent 1a6dc17134
commit 3f59cd3082
1 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,17 @@ require 'active_support/core_ext/class/attribute'
#
# @thing_1 and @thing_2 will be decorated right before a rendering occurs.
#
# You can also specify the decorator you wish to use for a particular instance variable:
#
# class StuffController < ApplicationController
# include DecoratesBeforeRendering
#
# decorates :thing_1, :with => ThingListDecorator
# decorates :thing_2
# end
#
# @thing_1 will be a ThingListDecorator (or contain them), and @thing_2 will be a Thing2Decorator.
#
module DecoratesBeforeRendering
module ClassMethods
def decorates(*unsigiled_ivar_names)