db-charmer 1.4.4 → 1.4.5
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/finder_overrides.rb +5 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.5
|
data/db-charmer.gemspec
CHANGED
@@ -26,8 +26,11 @@ module DbCharmer
|
|
26
26
|
|
27
27
|
def find(*args, &block)
|
28
28
|
options = args.extract_options!
|
29
|
-
|
30
|
-
|
29
|
+
if options[:lock]
|
30
|
+
on_master { super(*args, &block) }
|
31
|
+
else
|
32
|
+
super(*args, &block)
|
33
|
+
end
|
31
34
|
end
|
32
35
|
|
33
36
|
private
|