Module: WillPaginate::Deprecation

Extended by:
ActiveSupport::Deprecation
Defined in:
lib/will_paginate.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.silenced?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/will_paginate.rb', line 78

def self.silenced?
  ActiveSupport::Deprecation.silenced?
end

.warn(message, callstack = caller) ⇒ Object



73
74
75
76
# File 'lib/will_paginate.rb', line 73

def self.warn(message, callstack = caller)
  message = 'WillPaginate: ' + message.strip.gsub(/\s+/, ' ')
  behavior.call(message, callstack) if behavior && !silenced?
end