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 +4 -4
- data/lib/canvas_sync/engine.rb +5 -1
- data/lib/canvas_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef5adc65f2560567bff6cb71e817e646fe6f3d727cc0def5ec3b8cdee798131e
|
4
|
+
data.tar.gz: 8380125f3523e3f08861c1af47e4b81178955ed215a2c0b0f0f63a06921d6f45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe874e5e55c77e566f9cce71981e55c2482cd72740ae07c4b9dddeae5bd971df5b694f08bc9479d7096256da8eca9a5f169d4c964b4b733e6e872f069de563d8
|
7
|
+
data.tar.gz: ab9d9a36d9eae58eff042131b5f8166908e7690482a04de2e2f14f7086a09227c919c4e02f9b012ba3baccdd929c93c06c7029fc9494907c6ab55ea85899a88e
|
data/lib/canvas_sync/engine.rb
CHANGED
@@ -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
|
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
|
|
data/lib/canvas_sync/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|