kithe 2.15.0 → 2.15.1
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 +4 -4
- data/app/models/kithe/model.rb +7 -1
- data/lib/kithe/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db54257ac9bfcbf8907af9fd6a859a528b8772b62316c4d124314c2ab4a5828d
|
4
|
+
data.tar.gz: 655706b8554e5a001eec8e2b79b591c3ccf0f4e71b7c48a3d7701aa9861a9148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f890a25210f673751a2d89f127a0b3b6d4bf1ca5d9aab184c4cdf4c51787eae157ccf6ab7a32bc92321b39c27a8c6666f6362e51a3f5440431619e518958ef6
|
7
|
+
data.tar.gz: 4198d3dd5eed7f59e4c7a202c06ba365d90e9c3daefa73b55ca6347c7746406fd77dd69c2dd9b55cd173af04be77861deeff4798405803d7297d62af9fce2126
|
data/app/models/kithe/model.rb
CHANGED
@@ -23,7 +23,13 @@ class Kithe::Model < ActiveRecord::Base
|
|
23
23
|
#
|
24
24
|
# Since the rails enum uses an int field, this doens't take up too much extra
|
25
25
|
# space in pg or anything, and is convenient.
|
26
|
-
|
26
|
+
#
|
27
|
+
# Start using new non-deprecated args in Rails 7.0
|
28
|
+
if Rails.gem_version < Gem::Version.new("7.0")
|
29
|
+
enum kithe_model_type: { collection: 0, work: 1, asset: 2}
|
30
|
+
else
|
31
|
+
enum :kithe_model_type, { collection: 0, work: 1, asset: 2}
|
32
|
+
end
|
27
33
|
|
28
34
|
attr_json_config(default_accepts_nested_attributes: { reject_if: :all_blank })
|
29
35
|
|
data/lib/kithe/version.rb
CHANGED