[openstreetmap/openstreetmap-website] Move scope_enabled? to ApiController (PR #5543)

Anton Khorev notifications at github.com
Fri Jan 24 02:59:05 UTC 2025


`scope_enabled?` is only called from api controllers/views and it references `doorkeeper_token` available only during api calls.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5543

-- Commit Summary --

  * Move scope_enabled? to ApiController

-- File Changes --

    M app/controllers/api_controller.rb (6)
    M app/controllers/application_controller.rb (6)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5543.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5543.diff

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

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


More information about the rails-dev mailing list