Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

User should not be able to delete themselves #153

Merged
merged 1 commit into from Dec 10, 2018

Conversation

ghostPepperWonton
Copy link
Contributor

@ghostPepperWonton ghostPepperWonton commented Dec 10, 2018

When viewing the "Users" page, delete links are present for all users except the one currently logged in.
Closes #112
screen shot 2018-12-10 at 3 11 28 pm


%tbody
- @users.each do |user|
- unless @users.blank?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rails/Present: Use if @users.present? instead of unless @users.blank?.

@Br3nda Br3nda merged commit c409f5a into master Dec 10, 2018
@ghost ghost removed the review label Dec 10, 2018
@Br3nda Br3nda deleted the feature/112-users-cannot-delete-self branch December 10, 2018 04:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants