Exception: Arel::BindError

Inherits:
ArelError
  • Object
show all
Defined in:
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 'lib/arel/errors.rb', line 11

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