method

log_call

rails latest stable - Class: Dependencies

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

log_call(*args)
protected

No documentation available.

# File activesupport/lib/active_support/dependencies.rb, line 437
  def log_call(*args)
    if defined?(RAILS_DEFAULT_LOGGER) && RAILS_DEFAULT_LOGGER && log_activity
      arg_str = args.collect(&:inspect) * ', '
      /in `([a-z_\?\!]+)'/ =~ caller(1).first
      selector = $1 || '<unknown>'
      log "called #{selector}(#{arg_str})"
    end
  end