Module: Sequel::ConstantSqlOverride::DatasetMethods

Defined in:
lib/sequel/extensions/constant_sql_override.rb

Instance Method Summary collapse

Instance Method Details

#constant_sql_append(sql, constant) ⇒ Object

Use overridden constant SQL



54
55
56
57
58
59
60
# File 'lib/sequel/extensions/constant_sql_override.rb', line 54

def constant_sql_append(sql, constant)
  if constant_sql = db.constant_sqls[constant]
    sql << constant_sql
  else
    super
  end
end