1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Rename s/feature_policy/permissions_policy/ in the CHANGELOG [ci skip]

This commit is contained in:
Ryuta Kamizono 2020-11-19 11:35:14 +09:00
parent 26fd55e02a
commit 151bce17b6

View file

@ -338,7 +338,7 @@
Example global policy:
```ruby
Rails.application.config.feature_policy do |f|
Rails.application.config.permissions_policy do |f|
f.camera :none
f.gyroscope :none
f.microphone :none
@ -352,7 +352,7 @@
```ruby
class PagesController < ApplicationController
feature_policy do |p|
permissions_policy do |p|
p.geolocation "https://example.com"
end
end