gregmolnar/yii-attachment-behavior — pull request #2 by bravoman (2012-11-12 21:13:22+00:00)
Title: Path template can now include of owner derived attribute values.

Added the ability to make the path template use attributes of the owner object while saving the attachment like so `':folder/:{someAttributeOfTheOwner}/:id/:filename.:ext'`. You can even use attibutes of relations like so `:{user.username}`. Should also work with multiple relations through other relations like so `:{user.userSettings.imageSavePath}`. User has to a relation of the owner object. All the relations obviously need to be has_one or belongs_to for this to work.