Module: WillPaginate::Deprecation
- Extended by:
- ActiveSupport::Deprecation
- Defined in:
- lib/will_paginate.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.silenced? ⇒ Boolean
74 75 76 |
# File 'lib/will_paginate.rb', line 74 def self.silenced? ActiveSupport::Deprecation.silenced? end |
.warn(message, callstack = caller) ⇒ Object
69 70 71 72 |
# File 'lib/will_paginate.rb', line 69 def self.warn(, callstack = caller) = 'WillPaginate: ' + .strip.gsub(/\s+/, ' ') behavior.call(, callstack) if behavior && !silenced? end |