remove sign up link on devise views when registrations are disabled
This commit is contained in:
parent
ca98b9dd7f
commit
da0570164a
|
@ -2,7 +2,7 @@
|
|||
= link_to 'Sign in', new_session_path(resource_name)
|
||||
%br/
|
||||
|
||||
- if devise_mapping.registerable? && controller_name != 'registrations'
|
||||
- if devise_mapping.registerable? && controller_name != 'registrations' && Retrospring::Config.registrations_enabled?
|
||||
= link_to 'Sign up', new_registration_path(resource_name)
|
||||
%br/
|
||||
|
||||
|
|
Loading…
Reference in New Issue