mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Merge pull request #3320 from deivid-rodriguez/yield_the_resource_in_registrations_controller_new_action
Yield the resource in RegistrationsController#new
This commit is contained in:
commit
0efd9244bf
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