mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Yield the resource in RegistrationsController#new
This commit is contained in:
parent
e54326c19c
commit
1bbcc54026
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ class Devise::RegistrationsController < DeviseController
|
|||
if @validatable
|
||||
@minimum_password_length = resource_class.password_length.min
|
||||
end
|
||||
yield resource if block_given?
|
||||
respond_with self.resource
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue