forest_liana 1.1.32 → 1.1.33

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: 62eccafa43ccf8d99929ed8d2300bfd8fa28071c
4
- data.tar.gz: 82331d8d62575c950fb7448e826e4623b64d542c
3
+ metadata.gz: 3ca7b5f544f0992d8242a8fd58b0289cf11c6bba
4
+ data.tar.gz: c51dbf98c657a0b772776f92a682f8b531d73351
5
5
  SHA512:
6
- metadata.gz: 3f29ca0131172175f256dc37ea36fcb0ad031e33e9130452f3c87b072e2eed26a3a88a5f0382e7ea8deab2a8128b2153553858c3f73e15706261563b95eaed0d
7
- data.tar.gz: e6d391375a258b63b4d896221a6bfad6cb41f89ba7e84560b06d0186e60a2e95743e7e5212fb379a3a68af80d826466c80b8ac0027fd4929a6dbdd0b05b4e644
6
+ metadata.gz: 781bc93f06bf040518cb0defe21d73b6ee8e8c90f18b6418b36c89a1f946ba1cb2c66aa7250b10bd6ba68df388abb0e27ff6d3742d50fb68f486d3d36ce5f4cf
7
+ data.tar.gz: 9fedc617c7215e5fb4b6e3538ed20281e8b87853c3111b26098031326cd6fda0f82ab5332f14fb1458892091c554b64af4a04802e6f51d65543455de30dded00
@@ -194,7 +194,14 @@ module ForestLiana
194
194
  end
195
195
 
196
196
  def foreign_keys(active_record_class)
197
- SchemaUtils.associations(active_record_class).map(&:foreign_key)
197
+ begin
198
+ SchemaUtils.associations(active_record_class).map(&:foreign_key)
199
+ rescue => err
200
+ # Association foreign_key triggers an error. Put the stacktrace and
201
+ # returns no foreign keys.
202
+ puts err.backtrace
203
+ []
204
+ end
198
205
  end
199
206
  end
200
207
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.1.32"
2
+ VERSION = "1.1.33"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.32
4
+ version: 1.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda