]> git.openstreetmap.org Git - rails.git/commit
Move gravatar_enable method to User model
authorRobert Koeze <rkoeze@gmail.com>
Mon, 21 Apr 2025 00:41:01 +0000 (20:41 -0400)
committerRobert Koeze <rkoeze@gmail.com>
Wed, 14 May 2025 12:45:23 +0000 (08:45 -0400)
commit8fadbd353415cb69986d662aa368a4dc8ac33a53
tree19c8fe09110b464203b8a6c40838e4c09007d00b
parent3365ceb2e69e89007864e6371236d30b5841ffe5
Move gravatar_enable method to User model

This method configures a gravatar for the user. Since this is
business logic let's put it on the model instead of in the controller.
Now we can also test this method outside of the request/response
lifecycle.
app/controllers/confirmations_controller.rb
app/models/user.rb