You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…er (#1618)
* Add Current model
* Assign Current.user in #current_user
* Replace current_user with Current.user in /settings
* Replace current_user with Current.user
* Remove current_user as a helper method, no longer used in views
* Delete #current_user
This also feels like a place that we could benefit from using
CurrentAttributes
(added in Rails 5.2).They're thread locale globals. https://api.rubyonrails.org/classes/ActiveSupport/CurrentAttributes.html
Current.user
would only apply to admin users, not readers.The text was updated successfully, but these errors were encountered: