fix initialization issues with unicorn
amend unicorn script to demonize sidekiq create a sidekiq demon that unicorn consumes correct bug in exec_sql with empty params
This commit is contained in:
+5
-1
@@ -61,7 +61,11 @@ class SqlBuilder
|
||||
if @klass
|
||||
@klass.find_by_sql(ActiveRecord::Base.send(:sanitize_sql_array, [sql, @args]))
|
||||
else
|
||||
ActiveRecord::Base.exec_sql(sql,@args)
|
||||
if @args == {}
|
||||
ActiveRecord::Base.exec_sql(sql)
|
||||
else
|
||||
ActiveRecord::Base.exec_sql(sql,@args)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user