Skip to content

Commit

Permalink
Delegate more methods from DatabaseStatements to master
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Altintop committed Jun 24, 2011
1 parent 688c53b commit bb4a0d0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/master_slave_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb4a0d0

Please sign in to comment.