app/controllers/registrations_controller.rb in milia-0.3.30 vs app/controllers/registrations_controller.rb in milia-0.3.31
- old
+ new
@@ -75,10 +75,10 @@
if resource.active_for_authentication?
set_flash_message :notice, :signed_up if is_navigational_format?
sign_in(resource_name, resource)
respond_with resource, :location => after_sign_up_path_for(resource)
else
- set_flash_message :notice, :inactive_signed_up, :reason => inactive_reason(resource) if is_navigational_format?
+ set_flash_message :notice, :inactive_signed_up, :reason => resource.inactive_message if is_navigational_format?
expire_session_data_after_sign_in!
respond_with resource, :location => after_inactive_sign_up_path_for(resource)
end
else # resource had errors ...
prep_devise_new_view( @tenant, resource )