Module: WillPaginate::Deprecation

Defined in:
lib/will_paginate/deprecation.rb

Defined Under Namespace

Classes: Hash

Class Method Summary (collapse)

Class Method Details

+ (Object) warn(message, stack = caller)



3
4
5
6
7
8
# File 'lib/will_paginate/deprecation.rb', line 3

def warn(message, stack = caller)
  offending_line = origin_of_call(stack)
  full_message = "DEPRECATION WARNING: #{message} (called from #{offending_line})"
  logger = rails_logger || Kernel
  logger.warn full_message
end