Class: RailsBand::ActionController::LogSubscriber
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- RailsBand::ActionController::LogSubscriber
- Defined in:
- lib/rails_band/action_controller/log_subscriber.rb
Overview
The custom LogSubscriber for ActionController.
Instance Method Summary collapse
- #exist_fragment?(event) ⇒ Boolean
- #expire_fragment(event) ⇒ Object
- #halted_callback(event) ⇒ Object
- #process_action(event) ⇒ Object
- #rate_limit(event) ⇒ Object
- #read_fragment(event) ⇒ Object
- #redirect_to(event) ⇒ Object
- #send_data(event) ⇒ Object
- #send_file(event) ⇒ Object
- #send_stream(event) ⇒ Object
- #start_processing(event) ⇒ Object
- #unpermitted_parameters(event) ⇒ Object
- #write_fragment(event) ⇒ Object
Instance Method Details
#exist_fragment?(event) ⇒ Boolean
39 40 41 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 39 def exist_fragment?(event) consumer_of(__method__)&.call(Event::ExistFragment.new(event)) end |
#expire_fragment(event) ⇒ Object
35 36 37 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 35 def expire_fragment(event) consumer_of(__method__)&.call(Event::ExpireFragment.new(event)) end |
#halted_callback(event) ⇒ Object
67 68 69 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 67 def halted_callback(event) consumer_of(__method__)&.call(Event::HaltedCallback.new(event)) end |
#process_action(event) ⇒ Object
47 48 49 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 47 def process_action(event) consumer_of(__method__)&.call(Event::ProcessAction.new(event)) end |
#rate_limit(event) ⇒ Object
75 76 77 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 75 def rate_limit(event) consumer_of(__method__)&.call(Event::RateLimit.new(event)) end |
#read_fragment(event) ⇒ Object
31 32 33 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 31 def read_fragment(event) consumer_of(__method__)&.call(Event::ReadFragment.new(event)) end |
#redirect_to(event) ⇒ Object
63 64 65 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 63 def redirect_to(event) consumer_of(__method__)&.call(Event::RedirectTo.new(event)) end |
#send_data(event) ⇒ Object
59 60 61 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 59 def send_data(event) consumer_of(__method__)&.call(Event::SendData.new(event)) end |
#send_file(event) ⇒ Object
51 52 53 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 51 def send_file(event) consumer_of(__method__)&.call(Event::SendFile.new(event)) end |
#send_stream(event) ⇒ Object
55 56 57 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 55 def send_stream(event) consumer_of(__method__)&.call(Event::SendStream.new(event)) end |
#start_processing(event) ⇒ Object
43 44 45 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 43 def start_processing(event) consumer_of(__method__)&.call(Event::StartProcessing.new(event)) end |
#unpermitted_parameters(event) ⇒ Object
71 72 73 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 71 def unpermitted_parameters(event) consumer_of(__method__)&.call(Event::UnpermittedParameters.new(event)) end |
#write_fragment(event) ⇒ Object
27 28 29 |
# File 'lib/rails_band/action_controller/log_subscriber.rb', line 27 def write_fragment(event) consumer_of(__method__)&.call(Event::WriteFragment.new(event)) end |