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

[#1548] Use CurrentAttributes to replace current_user with Current.user #1618

Merged
merged 6 commits into from
May 24, 2020

Conversation

veganstraightedge
Copy link
Contributor

#1548


How does this pull request make you feel (in animated GIF format)?

🎉

What are the relevant GitHub issues?

resolves #1548

What does this pull request do?

  • Sets Current.user from the session
  • Uses Current.user everywhere instead of current_user

How should this be manually tested?

Sign in and it should work.

Is there any background context you want to provide for reviewers?

Whenever we can use the framework itself and create/maintain less ourselves, the better.

Questions for the pull request author (delete any that don't apply):

  • Does the code you updated have tests? If not, could you add some please?

@CobyR CobyR temporarily deployed to crimethinc-staging-pr-1618 May 24, 2020 22:12 Inactive
@veganstraightedge veganstraightedge temporarily deployed to crimethinc-staging-pr-1618 May 24, 2020 22:28 Inactive
@veganstraightedge veganstraightedge temporarily deployed to crimethinc-staging-pr-1618 May 24, 2020 22:29 Inactive
Copy link
Contributor

@astronaut-wannabe astronaut-wannabe left a comment

Choose a reason for hiding this comment

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

wow, this is very nice

app/views/admin/articles/_form.html.erb Show resolved Hide resolved
@veganstraightedge veganstraightedge merged commit e3e06a7 into master May 24, 2020
@veganstraightedge veganstraightedge deleted the 1548_current_user branch May 24, 2020 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Current Attributes for: Current.user (admin)
3 participants