1
0
Fork 0
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:
David Rodríguez 2014-11-19 09:32:51 +01:00
parent e54326c19c
commit 1bbcc54026

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