class RailsBand::ActionView::LogSubscriber
The custom LogSubscriber
for ActionView
.
Public Instance Methods
render_collection(event)
click to toggle source
# File lib/rails_band/action_view/log_subscriber.rb, line 21 def render_collection(event) consumer_of(__method__)&.call(Event::RenderCollection.new(event)) end
render_partial(event)
click to toggle source
# File lib/rails_band/action_view/log_subscriber.rb, line 17 def render_partial(event) consumer_of(__method__)&.call(Event::RenderPartial.new(event)) end
render_template(event)
click to toggle source
# File lib/rails_band/action_view/log_subscriber.rb, line 13 def render_template(event) consumer_of(__method__)&.call(Event::RenderTemplate.new(event)) end
Private Instance Methods
consumer_of(sub_event)
click to toggle source
# File lib/rails_band/action_view/log_subscriber.rb, line 27 def consumer_of(sub_event) consumers[:"#{sub_event}.action_view"] || consumers[:action_view] || consumers[:default] end