canvas_sync 0.18.2 → 0.18.3

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
  SHA256:
3
- metadata.gz: 6f81a278e6cdf2417b1a7ae78981045c590d54cb315c7e0c7bd50854cca3ed95
4
- data.tar.gz: dee3509dddbff35d2c8f68ac7078f85bf7f1e7be71330a82f7bcf01bcd511207
3
+ metadata.gz: 13177d09ca23d9bd29f83117cb1321cfbd21f36c690212647177657d95f23c23
4
+ data.tar.gz: b0e2816208c92844c8f63e0209365bffecb98c6091512ad881164fa604b40011
5
5
  SHA512:
6
- metadata.gz: 9eb8f5848c9ddb635c9423e12eeec2998e4e102bba7c3d2e14f5a56af1983953af808b9ae3e10187ba0aa39892a8467918237af0e75e79e66bda1997674a15f7
7
- data.tar.gz: a28269db84eb1f7e3b42e31193280907b0375c601e1dbc7fed65076c2e2a07467723d8bd7647ce3fd55b539340ed896805425e2fb5d75d2dfa031419eaa48195
6
+ metadata.gz: 9a196e827d48234c0da749c4cbe672e8f0e6583de5258fa7b2d20099706687089b7d01c771aa00f7dfab0513ab54e67a04ee0b170ac05c1dee6c7d5794458101
7
+ data.tar.gz: cbe1be336eda39a93939a3f2bf12454ff74ac77569b83ab2e4aed71aaba0670cf9764ecffede496f02e46dee4f752e479b5ab4d2645b2ad20cd42f95103817da
@@ -101,11 +101,10 @@ module CanvasSync
101
101
  included do
102
102
  define_model_callbacks :sync_import
103
103
 
104
- begin
105
- if column_names.include?("canvas_sync_batch_id")
106
- belongs_to :canvas_sync_batch, foreign_key: :canvas_sync_batch_id, class_name: "CanvasSync::SyncBatch", optional: true
107
- end
108
- rescue PG::UndefinedTable
104
+ col_names = column_names rescue []
105
+
106
+ if col_names.include?("canvas_sync_batch_id")
107
+ belongs_to :canvas_sync_batch, foreign_key: :canvas_sync_batch_id, class_name: "CanvasSync::SyncBatch", optional: true
109
108
  end
110
109
  end
111
110
  end
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.18.2".freeze
2
+ VERSION = "0.18.3".freeze
3
3
  end