[openstreetmap/openstreetmap-website] Move `gravatar_enable` method to User model (PR #5988)

rkoeze notifications at github.com
Wed May 7 02:19:25 UTC 2025


rkoeze left a comment (openstreetmap/openstreetmap-website#5988)

It looks like I'm bumping up against the `ClassLength` cop [here](https://github.com/openstreetmap/openstreetmap-website/blob/master/.rubocop_todo.yml#L68). Happy to close this PR if that's a strict rule we need to observe. We could also update the cop.

In the long term, we could look at using a model-specific concern to break up some of the `User` code ([here's a post on how that approach is used at Basecamp](https://world.hey.com/jorge/code-i-like-iii-good-concerns-5a1b391c)).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5988#issuecomment-2856826847
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5988/c2856826847 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250506/b53ff397/attachment-0001.htm>


More information about the rails-dev mailing list