Sha256: 8c039c9633e7eaa51957f3a3296eae2cb685e57e3662c908f3ca15b51ea6e53f

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

Exception.class_eval do
  alias_method :set_backtrace_without_filter, :set_backtrace
  def set_backtrace array
    begin
      if environment = rad.environment? && rad.environment
        set_backtrace_without_filter array.sfilter(environment.backtrace_filters)
      else
        set_backtrace_without_filter array
      end
    rescue
      set_backtrace_without_filter array
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rad_core-0.2.7 lib/rad/_support/exception.rb
rad_core-0.2.6 lib/rad/_support/exception.rb
rad_core-0.2.5 lib/rad/_support/exception.rb
rad_core-0.2.4 lib/rad/_support/exception.rb
rad_core-0.2.3 lib/rad/_support/exception.rb
rad_core-0.2.2 lib/rad/_support/exception.rb
rad_core-0.2.1 lib/rad/_support/exception.rb
rad_core-0.2.0 lib/rad/_support/exception.rb
rad_core-0.0.30 lib/rad/_support/exception.rb
rad_core-0.0.29 lib/rad/_support/exception.rb
rad_core-0.0.28 lib/rad/_support/exception.rb
rad_core-0.0.27 lib/rad/_support/exception.rb
rad_core-0.0.26 lib/rad/_support/exception.rb