Skip to content

Rescue NameError in formatter#94

Open
pik wants to merge 1 commit into
cldwalker:masterfrom
pik:bug/render
Open

Rescue NameError in formatter#94
pik wants to merge 1 commit into
cldwalker:masterfrom
pik:bug/render

Conversation

@pik

@pik pik commented Jul 19, 2015

Copy link
Copy Markdown

So when Hirb tries pretty-print my lists, which are very often not intended to be tables (but happen to contain an AR object) it consistently breaks without recourse. It would be nicer to rescue in the render method than to swallow the whole block - but I'm not sure there is a very neat way to do that, since each formatter defines it's own renderer.

 * Fixes Hirb breaking when rendering arrays of items where the item type
 is not the same
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant