Module: ReferenceTracking::ActionController::Tracking

Defined in:
lib/reference_tracking/action_controller.rb

Overview

TODO could this hook into instrumentation? ActiveSupport::Notifications.instrument(“render_template.action_view”, …)?

Instance Method Summary collapse

Instance Method Details

#renderObject



54
55
56
57
58
59
60
61
62
# File 'lib/reference_tracking/action_controller.rb', line 54

def render(*)
  methods = reference_tracking_options[params[:action].to_sym] || {}
  @_references = ReferenceTracking::References.new(self, methods)

  result = super

  headers[reference_tracking_options[:header]] = @_references.tags unless @_references.empty?
  result
end