Module: ActiveSupport::Deprecation::Reporting
- Defined in:
- lib/raise_deprecation_warnings.rb
Instance Method Summary collapse
Instance Method Details
#warn(message = nil, callstack = nil) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/raise_deprecation_warnings.rb', line 14 def warn( = nil, callstack = nil) return if =~ /currently checks both tables and views/ e = Exception.new() callstack ||= caller_locations(2) e.set_backtrace(callstack.map(&:to_s)) raise e end |