mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused instrumentation hooks from action_controller
Instrumentation hooks for `write_page.action_controller` and `expire_page.action_controller` seem to be removed in https://github.com/rails/rails/pull/7833. So, subscribers for them are no longer necessary.
This commit is contained in:
parent
c2b083df91
commit
d4de20e5c2
2 changed files with 1 additions and 26 deletions
|
@ -62,8 +62,7 @@ module ActionController
|
|||
end
|
||||
end
|
||||
|
||||
%w(write_fragment read_fragment exist_fragment?
|
||||
expire_fragment expire_page write_page).each do |method|
|
||||
%w(write_fragment read_fragment exist_fragment? expire_fragment).each do |method|
|
||||
class_eval <<-METHOD, __FILE__, __LINE__ + 1
|
||||
def #{method}(event)
|
||||
return unless logger.info? && ActionController::Base.enable_fragment_cache_logging
|
||||
|
|
|
@ -156,30 +156,6 @@ Within the Ruby on Rails framework, there are a number of hooks provided for com
|
|||
}
|
||||
```
|
||||
|
||||
#### write_page.action_controller
|
||||
|
||||
| Key | Value |
|
||||
| ------- | ----------------- |
|
||||
| `:path` | The complete path |
|
||||
|
||||
```ruby
|
||||
{
|
||||
path: '/users/1'
|
||||
}
|
||||
```
|
||||
|
||||
#### expire_page.action_controller
|
||||
|
||||
| Key | Value |
|
||||
| ------- | ----------------- |
|
||||
| `:path` | The complete path |
|
||||
|
||||
```ruby
|
||||
{
|
||||
path: '/users/1'
|
||||
}
|
||||
```
|
||||
|
||||
#### start_processing.action_controller
|
||||
|
||||
| Key | Value |
|
||||
|
|
Loading…
Reference in a new issue