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
grape-rabl 0.5.0 uses Grape::Formatter.formatter_for with one argument.
grape-rabl
Grape::Formatter.formatter_for
grape-rabl/lib/grape-rabl/formatter.rb
Lines 40 to 41 in b201ebd
But grape 2.2.0 changed its arity.
grape
ruby-grape/grape@v2.1.3...v2.2.0#diff-2332fb7b55e286e39346d06d8427673ae0dade2d41786327b23375cc30ef2ffaR17
So wrong number of arguments (given 1, expected 2) raised.
wrong number of arguments (given 1, expected 2)
In our application, following monkey patch resolved the exception.
module Grape module Formatter module_function def formatter_for(api_format, formatters=nil) select_formatter(formatters, api_format) || DEFAULT_LAMBDA_FORMATTER end end end
The text was updated successfully, but these errors were encountered:
I am moving this to grape-rabl since it's really a problem with the latter.
Want to try and fix this here? Maybe start with #52.
Sorry, something went wrong.
No branches or pull requests
grape-rabl
0.5.0 usesGrape::Formatter.formatter_for
with one argument.grape-rabl/lib/grape-rabl/formatter.rb
Lines 40 to 41 in b201ebd
But
grape
2.2.0 changed its arity.ruby-grape/grape@v2.1.3...v2.2.0#diff-2332fb7b55e286e39346d06d8427673ae0dade2d41786327b23375cc30ef2ffaR17
So
wrong number of arguments (given 1, expected 2)
raised.In our application, following monkey patch resolved the exception.
The text was updated successfully, but these errors were encountered: