You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
394 B

  1. module Semantic
  2. module Subscribers
  3. class ActionView < ActiveSupport::LogSubscriber
  4. include AnsiColors
  5. attr_reader :logger
  6. def initialize
  7. short_name = self.class.to_s.split('::').last
  8. @logger = SemanticLogger[short_name]
  9. super
  10. end
  11. def render_partial(event)
  12. logger.info('Rendered partial', event)
  13. end
  14. end
  15. end
  16. end