db-charmer 1.3.3 → 1.3.4
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/association_proxy.rb +3 -2
- data/lib/db_charmer/scope_proxy.rb +2 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
data/db-charmer.gemspec
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
module DbCharmer
|
2
2
|
module AssociationProxy
|
3
3
|
module InstanceMethods
|
4
|
-
def on_db(con, &block)
|
5
|
-
|
4
|
+
def on_db(con, proxy_target = nil, &block)
|
5
|
+
proxy_target ||= self
|
6
|
+
@reflection.klass.on_db(con, proxy_target, &block)
|
6
7
|
end
|
7
8
|
|
8
9
|
def on_slave(con = nil, &block)
|