[openstreetmap/openstreetmap-website] Disentangle the api abilities from the web abilities (#2192)

Andy Allan notifications at github.com
Wed Mar 27 17:10:47 UTC 2019


This will allow us to rename actions without causing permissions headaches. The choice of abilities files is made by inheriting from either `api_controller` or `application_controller`.

Also rename `capabilities` to `api_capabilites`, for consistency.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Disentangle the api abilities from the web abilities

-- File Changes --

    M app/abilities/ability.rb (34)
    A app/abilities/api_ability.rb (88)
    R app/abilities/api_capability.rb (2)
    M app/controllers/api_controller.rb (9)
    M app/controllers/application_controller.rb (7)
    M test/abilities/abilities_test.rb (26)
    A test/abilities/api_abilities_test.rb (44)
    R test/abilities/api_capability_test.rb (32)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190327/90e392ed/attachment.html>


More information about the rails-dev mailing list