lookup_by 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89c6960058f0ae2cbe8cb5654c37b331b0b25bd1
4
- data.tar.gz: d13f7ed9c8e34d40b51e8c68983d19d9b5645cbc
3
+ metadata.gz: a299c9db3319e08da624742ac0c273269762509a
4
+ data.tar.gz: af001c400ada05593af8aa11a8660ede11998596
5
5
  SHA512:
6
- metadata.gz: f09941d8870cde958762337e6f75d42bf88c44d37d06fe63f7fc91f60e4c79fc8b4c4cb183de0403dc02f0a43587e06f75f65ff43d0b3eea8297f9ef023839b1
7
- data.tar.gz: 4e7c909cd63d81350726fc80066e211d92cdf8c5c447a78ae8830f6dcd5cbc7f2706c758d52a430ecf3cc0475e51ed674dba2ae030701dd12eedf83730698da2
6
+ metadata.gz: 5e3f915965de466e8b2502f0a86950af419161a864d646c0af8450eadd6ed6ee20d192db0c6e9eb446cca25f5dce9753404ab4663d790ee0a7a39fc8d048d163
7
+ data.tar.gz: b2a9d2a6bbaa80f4fb7fb414078d37876568b90227abcdd2132db24855f16ec2f8a8d94cf812dcdd13b6da790cf8c7e7f3ab009f4c19a584deff3a62f2142dd9
@@ -19,7 +19,7 @@ module LookupBy
19
19
 
20
20
  def lookup_by(field, options = {})
21
21
  begin
22
- connection
22
+ return unless table_exists?
23
23
  rescue => error
24
24
  Rails.logger.error "lookup_by caught #{error.class.name} when connecting - skipping initialization (#{error.inspect})"
25
25
  return
@@ -1,3 +1,3 @@
1
1
  module LookupBy
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookup_by
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Peterson