mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Yield the resource in SessionsController#new
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user