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
1 changed files with 1 additions and 0 deletions

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