sstephenson/ruby-ejs — pull request #13 by onyxrev (2013-02-19 06:59:43+00:00)
Title: Fix for tunaries always being truthy when passed to escaping EJS tags.

The implementation was prepending an empty string blindly to the front of the fragment provided to the tags which caused the turnary to always be evaluated truthily.

Example:

```javascript
<%- this.ad.activity ? this.ad.activity.activity : "" %>
```

...was producing:

```javascript
(''+this.ad.activity ? this.ad.activity.activity : "")
```

... which is always truthy because of the type coercion. It now produces:

```javascript
(''+(this.ad.activity ? this.ad.activity.activity : ""))
```

... which properly honors the intention of the evaluation.