1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Merge pull request #3308 from mtarnovan/master

Yield the resource in SessionsController#new
This commit is contained in:
Lucas Mazza 2014-11-12 11:23:07 -02:00
commit 12b5439f84

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