active_record_shards 2.0.0.beta1 → 2.0.0.beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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