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

AP showing empty array for foreign_keys that are strings #355

Open
LizPrescott opened this issue Apr 2, 2019 · 0 comments
Open

AP showing empty array for foreign_keys that are strings #355

LizPrescott opened this issue Apr 2, 2019 · 0 comments

Comments

@LizPrescott
Copy link

We have a pretty weird set-up wherein we share a database with a legacy coldfusion app. (I know.) Coldfusion can't deal with arrays in the way that rails represents relationships. So in some cases, we have foreign keys that are strings, rather than arrays. We can still see the data when we print it in the console normally, but when we try to do so with awesome_print, it appears as an empty array.

Expected behavior:
awesome_print shows data even when it is of an unexpected type.

Current behavior:
When a foreign key (model_id) is a string or list of strings, awesome_print shows them as an empty array.

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

No branches or pull requests

1 participant