canvas_sync 0.18.5 → 0.18.6

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: 5ee969c06ea18513b00cf11747d99ebf7ae9cb13ceaa41d1f14dfc216572a49f
4
- data.tar.gz: b92fdc515d5c30bb3ef39e5017671aef804f76ac6562e9e5b305a7b8f2a0fa24
3
+ metadata.gz: ef5adc65f2560567bff6cb71e817e646fe6f3d727cc0def5ec3b8cdee798131e
4
+ data.tar.gz: 8380125f3523e3f08861c1af47e4b81178955ed215a2c0b0f0f63a06921d6f45
5
5
  SHA512:
6
- metadata.gz: c97c19876e724a12270e56f49d2954ecc825b6349a94adffd99c4aaa1e1df9f0d90257092698651d9a78c2bb0d284fd521416b17c609fe7caf4be3d705308208
7
- data.tar.gz: 56a0264fc80cd2fbbf8c4014fd91d828a36c114ef510db3919e1d346edb0ef7960c7d171f58aedab28480c23600227c5bab6a5194ae1a46757837a8135c93d0a
6
+ metadata.gz: fe874e5e55c77e566f9cce71981e55c2482cd72740ae07c4b9dddeae5bd971df5b694f08bc9479d7096256da8eca9a5f169d4c964b4b733e6e872f069de563d8
7
+ data.tar.gz: ab9d9a36d9eae58eff042131b5f8166908e7690482a04de2e2f14f7086a09227c919c4e02f9b012ba3baccdd929c93c06c7029fc9494907c6ab55ea85899a88e
@@ -8,7 +8,11 @@ module CanvasSync
8
8
  initializer "canvas_sync.safe_yaml_classes" do |app|
9
9
  app.config.active_record.yaml_column_permitted_classes ||= []
10
10
  app.config.active_record.yaml_column_permitted_classes |= [Symbol, ActiveSupport::HashWithIndifferentAccess]
11
- ActiveRecord::Base.yaml_column_permitted_classes |= app.config.active_record.yaml_column_permitted_classes
11
+ if ActiveRecord::Base.respond_to?(:yaml_column_permitted_classes)
12
+ ActiveRecord::Base.yaml_column_permitted_classes |= app.config.active_record.yaml_column_permitted_classes
13
+ elsif
14
+ ActiveRecord.yaml_column_permitted_classes |= app.config.active_record.yaml_column_permitted_classes
15
+ end
12
16
  rescue
13
17
  end
14
18
 
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.18.5".freeze
2
+ VERSION = "0.18.6".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.5
4
+ version: 0.18.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails