-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ArgumentError: wrong number of arguments (given 0, expected 1+) #2173
Comments
@r72cccp Sorry, I can be wrong right here, but in documentation you can really find another example of creating object.
|
I ran into this as well. I didn't track down the reason why
|
Hmm, don't know how I missed that in implementation and test |
Fixed by #2179 |
Expected behavior vs actual behavior
in
lib/active_model/serializer.rb:340:in
initialize'`:throw error:
ArgumentError: wrong number of arguments (given 0, expected 1+)
Steps to reproduce
(e.g., detailed walkthrough, runnable script, example application)
when i read documentation for Enumerator, i'm find, that it's expect minimum one argument, but in line 340 no arguments passed.
Environment
ActiveModelSerializers Version 0.10.6:
Output of
ruby -e "puts RUBY_DESCRIPTION"
:ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
OS Type & Version:
Linux u116 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Integrated application and version (e.g., Rails, Grape, etc):
rails-5.0.5
Backtrace
(e.g., provide any applicable backtraces from your application)
Additonal helpful information
(e.g., Gemfile.lock, configurations, PR containing a failing test, git bisect results)
AMS 0.10.6
The text was updated successfully, but these errors were encountered: