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 CHANGED
@@ -1 +1 @@
1
- 1.4.4
1
+ 1.4.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{db-charmer}
8
- s.version = "1.4.4"
8
+ s.version = "1.4.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexey Kovyrin"]
@@ -26,8 +26,11 @@ module DbCharmer
26
26
 
27
27
  def find(*args, &block)
28
28
  options = args.extract_options!
29
- on_master { super(*args, &block) } if options[:lock]
30
- super(*args, &block)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db-charmer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Kovyrin