glib-web 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/glib/dynamic_text_record.rb +6 -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: a3d1149ca462352763a72cb6e58287a4de0769c92fd2ffda66bf7e2b63569890
|
4
|
+
data.tar.gz: 8e0abe7b68f2e8a43c7b43bf792e288453978f77549415f6854ecf516e7e8ade
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad4d63d5f450b027d2648d1fa5af30935e98174e01974a6a7c2db1f674bc441361fcde1d843cb821667659e71605696606950432944c74a3253b09326740c5e9
|
7
|
+
data.tar.gz: a1d88def9320774a923f6805b259d3faaaf08e39407133c078e6ac1a2def4d4f100477bfec4c70c305f61adfae695f0b03cf7b7b064100b1f087e67873587c16
|
@@ -1,6 +1,11 @@
|
|
1
1
|
module Glib
|
2
2
|
class DynamicTextRecord < ActiveRecord::Base
|
3
3
|
self.abstract_class = true
|
4
|
-
|
4
|
+
|
5
|
+
# DT is only supported in Rails 6 but make sure things still work in Rails 5.
|
6
|
+
# TODO: Remove this check once we don't support Rails 5 anymore
|
7
|
+
if respond_to? :connects_to
|
8
|
+
connects_to database: { writing: :dynamic_text, reading: :dynamic_text }
|
9
|
+
end
|
5
10
|
end
|
6
11
|
end
|