Class: ActivePath::Subscribers::PathHints

Inherits:
Subscriber
  • Object
show all
Defined in:
lib/active_path/subscribers/path_hints.rb

Instance Attribute Summary

Attributes inherited from Subscriber

#buffer, #context, #options

Instance Method Summary collapse

Methods inherited from Subscriber

#call, #partial

Instance Method Details

#performObject



5
6
7
8
# File 'lib/active_path/subscribers/path_hints.rb', line 5

def perform
  buffer.prepend("<!-- start #{partial}#{with_local_variables.to_s} --!>".html_safe)
  buffer.concat("<!-- end #{partial} --!>".html_safe)
end