<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,10 +2,8 @@ module ActiveReload
   # MasterFilter should be used as an around filter in your controllers that require certain actions to use the Master DB for reads as well as writes
   class MasterFilter
     def self.filter(controller, &amp;block)
-      proxy = ActiveRecord::Base.active_connections['ActiveRecord::Base']
-
-      if proxy.respond_to?(:with_master)
-        proxy.with_master(&amp;block)
+      if ActiveRecord::Base.connection.respond_to?(:with_master)
+        ActiveRecord::Base.connection.with_master(&amp;block)
       else
         yield block
       end</diff>
      <filename>lib/active_reload/master_filter.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c7a0141d2f1503397dffc73d850c352b5da230a4</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Bloom</name>
    <email>andrew@andrewkbloom.com</email>
  </author>
  <url>http://github.com/technoweenie/masochism/commit/76165106bc0d1e9bd2caac6f033e14e6adbc099b</url>
  <id>76165106bc0d1e9bd2caac6f033e14e6adbc099b</id>
  <committed-date>2009-01-11T21:16:45-08:00</committed-date>
  <authored-date>2009-01-07T14:07:53-08:00</authored-date>
  <message>updating master filter to work with new masochism updates

Signed-off-by: rick &lt;technoweenie@gmail.com&gt;</message>
  <tree>d71e751c4785e323ab23ca16b5f9b9c4a36746dd</tree>
  <committer>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </committer>
</commit>
