Skip to content

RegistrationsController#edit does not respect Accept type #4615

Description

@timscott

RegistrationsController#edit renders a view without respect to the Accept type. Unless I'm missing something, it should be:

def edit
  respond_with resource
end

With this change, it will serve JSON when requested, which is useful in the case of using Devise in an API, for example.

If correct, I'm happy to make a PR.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions