Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescue NameError in formatter #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pik
Copy link

@pik pik commented Jul 19, 2015

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