# File ar-extensions/lib/ar-extensions/insert_select.rb, line 112 def insert_select(options={}) select_obj = options.delete(:from).to_s.classify.constantize #TODO: add batch support for high volume inserts #return insert_select_batch(select_obj, select_options, insert_options) if insert_options[:batch] sql = construct_insert_select_sql(select_obj, options) connection.insert(sql, "#{name} Insert Select #{select_obj}") end