method
log_call
v2.1.0 -
Show latest stable
- Class:
Dependencies
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