Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/devise/jwt/extensions/action_dispatch.rb
Instance Method Summary collapse
Instance Method Details
#devise_jwt_for(*resources) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/devise/jwt/extensions/action_dispatch.rb', line 4 def devise_jwt_for(*resources) = resources. [:controllers] = default_devise_jwt_controllers.merge([:controllers] || {}) [:defaults] = { format: :json }.merge([:defaults] || {}) Devise::JWT::WardenHelper.add_mappings(*resources) devise_for(*resources, ) end |