acts_as_having_string_id 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4049e75011844a99033b1fd85084942748925201
4
- data.tar.gz: 68060d24a7ad487dcd45291835d69b143f06537e
3
+ metadata.gz: c7195bb3e8f471af64c175437042f3b35fe514d8
4
+ data.tar.gz: be9a9440e976e47f4d8ad03ba69e0244e4a018f0
5
5
  SHA512:
6
- metadata.gz: a3372a5c525692612ba7ca80000ec6b0c515a3f413ce2324281e722e295aa3627845d8bc6e6638ab5b1e4bc798885abcf65b0989d32a8bce302eef5155dbd1f6
7
- data.tar.gz: 053b131ac064ae39f64c9a0ae9fbbd794cde0a1b8e0a2d612f2f0b42b2df85b0642afee540843b2aa8e67c2436037b3b002680884814fd79da9f78496c619799
6
+ metadata.gz: fd9fd3d983d888300e527efbe6c0b76828dde967d8069e987ba85ea6734608696e3df392550cbc78ed8ff73ef0ec7ff8e08baa7e07f308efd3d686991c8602da
7
+ data.tar.gz: 9152383d4df79590fb76da8e7f3a4b73df8068a086eacf2254cd6a4e51751e453f2fed894911820df097476e32470b9f5505a407099873a97d2fc0e4f33d4071
@@ -1,13 +1,8 @@
1
1
  module ActsAsHavingStringId
2
2
  class Railtie < Rails::Railtie
3
- initializer "railtie.include_in_application_record" do
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
@@ -1,3 +1,3 @@
1
1
  module ActsAsHavingStringId
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  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.0
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-07 00:00:00.000000000 Z
11
+ date: 2016-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails