1
0
Fork 0
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:
José Valim 2014-11-19 10:24:44 +01:00
commit 0efd9244bf

View file

@ -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