From bb4a0d00031766ebabbb069ee05458d36f161649 Mon Sep 17 00:00:00 2001 From: Kim Altintop Date: Fri, 24 Jun 2011 16:40:23 +0200 Subject: [PATCH] Delegate more methods from DatabaseStatements to master --- lib/master_slave_adapter.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/master_slave_adapter.rb b/lib/master_slave_adapter.rb index 5ce13c6..456a339 100644 --- a/lib/master_slave_adapter.rb +++ b/lib/master_slave_adapter.rb @@ -249,6 +249,20 @@ def execute(*args) :release_savepoint, :current_savepoint_name, :begin_db_transaction, + :outside_transaction?, + :add_limit!, + :add_limit_offset!, + :add_lock!, + :default_sequence_name, + :reset_sequence!, + :insert_fixture, + :empty_insert_statement, + :case_sensitive_equality_operator, + :limited_update_conditions, + :insert_sql, + :update_sql, + :delete_sql, + :sanitize_limit, :to => :master_connection delegate *ActiveRecord::ConnectionAdapters::SchemaStatements.instance_methods, :to => :master_connection