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:
commit
12b5439f84
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue