aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/crud.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb
index bedfb8c30c..43805dd464 100644
--- a/lib/arel/crud.rb
+++ b/lib/arel/crud.rb
@@ -32,11 +32,15 @@ switch to `compile_update`
end
def compile_insert values
- im = InsertManager.new @engine
+ im = create_insert
im.insert values
im
end
+ def create_insert
+ InsertManager.new @engine
+ end
+
# FIXME: this method should go away
def insert values
if $VERBOSE