You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I update active_model_serializers to version 10, then devise_token_auth works. Looks like devise_token_auth is clashing somehow, any idea how to fix without changing the active_model_serializers, since it involves big changes to my app
NameError at /auth/sign_in
==========================
> uninitialized constant DeviseTokenAuth::ApplicationController::ActiveModelSerializers
activesupport (4.2.7.1) lib/active_support/dependencies.rb, line 533
--------------------------------------------------------------------
``` ruby
528 raise unless e.missing_name? qualified_name_for(parent, const_name)
529 end
530 end
531
532 name_error = NameError.new("uninitialized constant #{qualified_name}", const_name)
> 533 name_error.set_backtrace(caller.reject {|l| l.starts_with? __FILE__ })
534 raise name_error
535 end
536
537 # Remove the constants that have been autoloaded, and those that have been
538 # marked for unloading. Before each constant is removed a callback is sent
0.8.1 has 4 years, if there was the other way around (like we have to update to the last active_model_serializers version), we would do it.
So you have 2 options:
Update the active_model_serializers gem, or
Override is_json_api and replace the code with the previous version of ActiveModelSerializers. You can do a concern in your code and add it to each devise token auth controller.
Hey, when I use the following gems and version, I get the following error:
if I update
active_model_serializers
to version10
, thendevise_token_auth
works. Looks likedevise_token_auth
is clashing somehow, any idea how to fix without changing theactive_model_serializers
, since it involves big changes to my appApp backtrace
Full backtrace
The text was updated successfully, but these errors were encountered: