danhigham/radiant-ace-code-editor — pull request #1 by dsci (2011-12-29 12:24:48+00:00)
Title: Content type helper

First - great extension!

Recently I ran into an exception which was thrown because

```
page_part.page.layout
```

was nil. I just wrapped this into a helper method which returns a
default content_type ("text/html"):

Remove the content_type inspection of the page part into a
helper method and return a default content_type if page part
hasn't any layout attached.

-- Maybe you are interested in this.

Regards,
Daniel