Skip to content

Commit 63be846

Browse files
authored
Merge pull request rails#43364 from yykamei/remove-unused-instrumentation-action_controller-hooks
Remove unused instrumentation hooks from action_controller
2 parents c2b083d + d4de20e commit 63be846

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

actionpack/lib/action_controller/log_subscriber.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ def unpermitted_parameters(event)
6262
end
6363
end
6464

65-
%w(write_fragment read_fragment exist_fragment?
66-
expire_fragment expire_page write_page).each do |method|
65+
%w(write_fragment read_fragment exist_fragment? expire_fragment).each do |method|
6766
class_eval <<-METHOD, __FILE__, __LINE__ + 1
6867
def #{method}(event)
6968
return unless logger.info? && ActionController::Base.enable_fragment_cache_logging

guides/source/active_support_instrumentation.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -156,30 +156,6 @@ Within the Ruby on Rails framework, there are a number of hooks provided for com
156156
}
157157
```
158158

159-
#### write_page.action_controller
160-
161-
| Key | Value |
162-
| ------- | ----------------- |
163-
| `:path` | The complete path |
164-
165-
```ruby
166-
{
167-
path: '/users/1'
168-
}
169-
```
170-
171-
#### expire_page.action_controller
172-
173-
| Key | Value |
174-
| ------- | ----------------- |
175-
| `:path` | The complete path |
176-
177-
```ruby
178-
{
179-
path: '/users/1'
180-
}
181-
```
182-
183159
#### start_processing.action_controller
184160

185161
| Key | Value |

0 commit comments

Comments
 (0)