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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c3733c91f64e84316ffc57ca5b343e2e65d4156e626c4f7df1be6733db3f151
4
- data.tar.gz: 82242ce70ba7c5be935a9cad09e5fad12ac13e1da8df35fcfe62a0ba1d74d965
3
+ metadata.gz: a3d1149ca462352763a72cb6e58287a4de0769c92fd2ffda66bf7e2b63569890
4
+ data.tar.gz: 8e0abe7b68f2e8a43c7b43bf792e288453978f77549415f6854ecf516e7e8ade
5
5
  SHA512:
6
- metadata.gz: 85f494238a126745f03329d2cc45e04e048403b811d0f51d7eb49ab0fe267567094650d477e141ac76d99c2ab445dabac8f29fd9743f163ac1cf2a60f3808bec
7
- data.tar.gz: ae42ea1a360b07361f66012f63e41a65a0ae6ad6cc908f656f3cdab5ede1fc6f75f93a3f82e9af18d7d14056377dc6f2d252841fdfb6ee402c5fe0b87823c6db
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
- connects_to database: { writing: :dynamic_text, reading: :dynamic_text }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''