This modification updates the routes, controllers, and views in order to be able to use other models than User (I.e: AdminUser from ActiveAdmin gem)
Fixes the has_many :fido_usf_devices association (before wasn't filtering on the user_type so a User with ID 1 and an AdminUser with ID 1 was having the same keys
Allows passing a on_success_redirect_to parameter in order to redirect somewhere else after the action (In my case, from ActiveAdmin I allow an AdminUser to delete a key for a User, and I want to stay in ActiveAdmin)
Coverage remained the same at 100.0% when pulling 9756866c69c118fbbac45a7af85f45f1bf7db81b on Pharmony:features/support-other-models-than-user into d47cea7549c21ccf01df78763efe3142f5b32733 on CyberDeck:master.
Coverage remained the same at 100.0% when pulling 9756866c69c118fbbac45a7af85f45f1bf7db81b on Pharmony:features/support-other-models-than-user into d47cea7549c21ccf01df78763efe3142f5b32733 on CyberDeck:master.
Coverage remained the same at 100.0% when pulling fb057b710fd254cb80f7d547b49387f6f91ad65d on Pharmony:features/support-other-models-than-user into d47cea7549c21ccf01df78763efe3142f5b32733 on CyberDeck:master.
has_many :fido_usf_devices
association (before wasn't filtering on theuser_type
so aUser
with ID1
and anAdminUser
with ID1
was having the same keyson_success_redirect_to
parameter in order to redirect somewhere else after the action (In my case, from ActiveAdmin I allow an AdminUser to delete a key for aUser
, and I want to stay in ActiveAdmin)