Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a bots count constant #427

Open
Utzig26 opened this issue Sep 18, 2021 · 0 comments
Open

Create a bots count constant #427

Utzig26 opened this issue Sep 18, 2021 · 0 comments
Assignees
Labels
Low priority This issue has low priority. refactor Refactor code.

Comments

@Utzig26
Copy link
Collaborator

Utzig26 commented Sep 18, 2021

To avoid things like that.

app/controllers/bots_controller.rb
if !current_developer.verified? && current_developer.bots.count >= 5

app/views/developers/show.html.rb
<% if current_developer == @developer && current_developer.bots.count < 5 %>

Disgusting!

@Utzig26 Utzig26 added refactor Refactor code. Low priority This issue has low priority. labels Sep 18, 2021
@Utzig26 Utzig26 self-assigned this Sep 18, 2021
@Utzig26 Utzig26 added this to To do in IA-e Frontend via automation Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low priority This issue has low priority. refactor Refactor code.
Projects
Development

No branches or pull requests

1 participant