db-charmer 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/db-charmer.gemspec +1 -1
- data/lib/db_charmer/multi_db_proxy.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.3
|
data/db-charmer.gemspec
CHANGED
@@ -14,7 +14,7 @@ module DbCharmer
|
|
14
14
|
res = m.__send__(meth, *args, &block)
|
15
15
|
|
16
16
|
# If result is a scope, return a new proxy for it, otherwise return the result itself
|
17
|
-
res.
|
17
|
+
(res.class == ActiveRecord::NamedScope::Scope) ? OnDbProxy.new(res, @slave) : res
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|