forest_liana 1.1.32 → 1.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ca7b5f544f0992d8242a8fd58b0289cf11c6bba
|
|
4
|
+
data.tar.gz: c51dbf98c657a0b772776f92a682f8b531d73351
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
data/lib/forest_liana/version.rb
CHANGED