Class: Crystal::Processors::ControllerLogger

Inherits:
Crystal::Processor show all
Defined in:
lib/crystal/controller/processors/controller_logger.rb

Instance Attribute Summary

Attributes inherited from Crystal::Processor

#next_processor

Instance Method Summary collapse

Methods inherited from Crystal::Processor

#initialize, inspect

Constructor Details

This class inherits a constructor from Crystal::Processor

Instance Method Details

#callObject



4
5
6
7
8
9
10
# File 'lib/crystal/controller/processors/controller_logger.rb', line 4

def call
  next_processor.call
  
  if (klass = workspace.class) and (method = workspace.method_name)
    logger.info "Processing #{klass.name}.#{method} with #{workspace.params.inspect}"
  end
end