Exception: ActiveRecord::UnsafeQueryError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/safe_query.rb

Instance Method Summary collapse

Instance Method Details

#backtraceObject

skip ourselves in the backtrace so it ends in the user code that generated the issue



4
5
6
7
8
9
# File 'lib/safe_query.rb', line 4

def backtrace
  return @lines if @lines
  @lines = super
  @lines.shift if @lines.present?
  @lines
end