Permalink
Browse files

[FEAT] adding #columns to the slaves directed methods

  • Loading branch information...
1 parent 7b0a5e7 commit 3b3de0cf1bddd4e38efee87867de91a4408925ac Elad Meidar committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db_charmer/rails2/active_record/master_slave_routing.rb
@@ -3,7 +3,7 @@ module ActiveRecord
module MasterSlaveRouting
module ClassMethods
- SLAVE_METHODS = [ :find_by_sql, :count_by_sql, :calculate ]
+ SLAVE_METHODS = [ :find_by_sql, :count_by_sql, :calculate, :columns]
MASTER_METHODS = [ :update, :create, :delete, :destroy, :delete_all, :destroy_all, :update_all, :update_counters ]
SLAVE_METHODS.each do |slave_method|

0 comments on commit 3b3de0c

Please sign in to comment.