We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Title pretty much says it all. If a blueprint has both a field with a symbol name and a field with a string name, render raises an ArgumentError:
render
ArgumentError
ArgumentError: comparison of Symbol with String failed from .../blueprinter-1.1.2/lib/blueprinter/view_collection.rb:32:in `sort_by'
Blueprinter handles this case and does not raise an error, or raises a more descriptive error.
Minimal test case:
class Test < Blueprinter::Base field(:foo) { 1 } field('bar') { 2 } end Test.render nil
- Ruby 3.1.6 - Blueprinter 1.1.2
No response
The text was updated successfully, but these errors were encountered:
Thanks for reporting this @branson-simplethread! We'll look into getting a fix out for this shortly!
Sorry, something went wrong.
friscomm
No branches or pull requests
Is there an existing issue for this?
Is this a regression?
Current Behavior
Title pretty much says it all. If a blueprint has both a field with a symbol name and a field with a string name,
render
raises anArgumentError
:Expected Behavior
Blueprinter handles this case and does not raise an error, or raises a more descriptive error.
Steps To Reproduce
Minimal test case:
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: