Yield the resource in SessionsController#new

This commit is contained in:
Mihai Târnovan
2014-11-05 15:47:10 +02:00
parent d67388ad98
commit 3902e0702c

View File

@@ -8,6 +8,7 @@ class Devise::SessionsController < DeviseController
def new
self.resource = resource_class.new(sign_in_params)
clean_up_passwords(resource)
yield resource if block_given?
respond_with(resource, serialize_options(resource))
end