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
#render ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/reference_tracking/action_controller.rb', line 54 def render(*) methods = [params[:action].to_sym] || {} @_references = ReferenceTracking::References.new(self, methods) result = super headers[[:header]] = @_references. unless @_references.empty? result end |