Exception: Arel::BindError

Inherits:
ArelError show all
Defined in:
activerecord/lib/arel/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, sql = nil) ⇒ BindError

Returns a new instance of BindError.



11
12
13
14
15
16
17
# File 'activerecord/lib/arel/errors.rb', line 11

def initialize(message, sql = nil)
  if sql
    super("#{message} in: #{sql.inspect}")
  else
    super(message)
  end
end