refactor: use MULTI_TENANT env variable, model concern instead of controller (#accepting_signups?)

This commit is contained in:
Adam Haris
2025-12-10 15:14:22 +01:00
parent 64ca9e551e
commit eb8655dc8e
11 changed files with 23 additions and 26 deletions
+3 -3
View File
@@ -10,10 +10,10 @@
</label>
</div>
<% if single_tenant? %>
<p>Enter your email and well get you signed in.</p>
<% else %>
<% if Account.accepting_signups? %>
<p><strong>New here?</strong> <%= link_to "Sign up", new_signup_path %> to create an account. <strong>Already have an account?</strong> Enter your email and well get you signed in.</p>
<% else %>
<p>Enter your email and well get you signed in.</p>
<% end %>
<button type="submit" id="log_in" class="btn btn--link center txt-medium">