In the end, I think we have passed the process to
respond_with does not work
So, I'm creating a Hash with
only as keys, and
respond_with seems to take this Hash as an argument...what do these two keys mean?
I don't fully understand it, but I somehow understood the role by looking at this commit (especially the test).
The methods use authentication_keys in config/initializers/device.rb.
The default is:email.
If you change this to :subdomain, it seems that user.subdomain is used instead of user.email during authentication.(Probably)
Also, wouldn't it be possible to use GitHub's blame or history to trace the commit log back, or to slowly debug using pry or RubyMine to solve other unclear points?
That's all for your information.
© 2022 OneMinuteCode. All rights reserved.