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:
parent
26fd55e02a
commit
151bce17b6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue