resolve/refinerycms — pull request #1619 by jipiboily (2012-04-25 15:40:49+00:00)
Title: Engine generator fix

I fixed then engine generation of a view that had an hardcoded "title" attribute in it.

Was generated before (line 8):

```ruby
<% if translation.title.present? %>
```
Now:
```ruby
<% if translation.[my_attribute].present? %>
```
ie:
```ruby
<% if translation.job_title.present? %>
```

I also removed some code duplication to keep that DRY.