acts_as_having_string_id 0.2.0 → 0.2.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7195bb3e8f471af64c175437042f3b35fe514d8
|
4
|
+
data.tar.gz: be9a9440e976e47f4d8ad03ba69e0244e4a018f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd9fd3d983d888300e527efbe6c0b76828dde967d8069e987ba85ea6734608696e3df392550cbc78ed8ff73ef0ec7ff8e08baa7e07f308efd3d686991c8602da
|
7
|
+
data.tar.gz: 9152383d4df79590fb76da8e7f3a4b73df8068a086eacf2254cd6a4e51751e453f2fed894911820df097476e32470b9f5505a407099873a97d2fc0e4f33d4071
|
@@ -1,13 +1,8 @@
|
|
1
1
|
module ActsAsHavingStringId
|
2
2
|
class Railtie < Rails::Railtie
|
3
|
-
|
4
|
-
ApplicationRecord.include(ActsAsHavingStringId)
|
5
|
-
|
6
|
-
if defined?(Spring)
|
7
|
-
Spring.after_fork do
|
8
|
-
# This needs to happen every time Spring reloads
|
9
|
-
ApplicationRecord.include(ActsAsHavingStringId)
|
10
|
-
end
|
3
|
+
config.to_prepare do
|
4
|
+
unless ApplicationRecord.included_modules.include?(ActsAsHavingStringId)
|
5
|
+
ApplicationRecord.include(ActsAsHavingStringId)
|
11
6
|
end
|
12
7
|
end
|
13
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_having_string_id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Magnus Hult
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|