active_record_shards 2.0.0.beta1 → 2.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,11 @@ module ActiveRecordShards
34
34
  end
35
35
  end
36
36
 
37
+ # just to ease the transition from replica to active_record_shards
38
+ alias_method :with_slave, :on_slave
39
+ alias_method :with_slave_if, :on_slave_if
40
+ alias_method :with_slave_unless, :on_slave_unless
41
+
37
42
  def on_slave_block(&block)
38
43
  old_slave = current_shard_selection.on_slave?
39
44
  begin