switchman 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/engine.rb +4 -12
- data/lib/switchman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80227d17c7587ce99df75ee7d181e2ff40cdbeb0
|
4
|
+
data.tar.gz: ac327051b373ac44f3a8e01bbfeec23891405bc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08f9fb72a1518b792bf7ebbad331b2191a1ed72e41d72850bb17a182dc1690fc31bbc78c8cb98ea2f52308e9ce20b3e13ece5b0bdbf8e727511de482c9fcfc4e
|
7
|
+
data.tar.gz: d2d7610a4f11918adcd79c1ab232f76fa01c212c4d9bd86962b039a60bf5f84797907fb3f08814105fd9c8130930d0aadc2c83f1ca541960bc5f1226a876fc75
|
data/lib/switchman/engine.rb
CHANGED
@@ -134,7 +134,7 @@ module Switchman
|
|
134
134
|
initializer 'switchman.eager_load' do
|
135
135
|
::ActiveSupport.on_load(:before_eager_load) do
|
136
136
|
# This needs to be loaded before Switchman::Shard, otherwise it won't autoload it correctly
|
137
|
-
|
137
|
+
require 'active_record/base'
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
@@ -155,17 +155,9 @@ module Switchman
|
|
155
155
|
end
|
156
156
|
|
157
157
|
initializer 'switchman.set_reloader_hooks', :before => "active_record.set_reloader_hooks" do |app|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
if app.config.reload_classes_only_on_change
|
163
|
-
::ActiveSupport.on_load(:active_record) do
|
164
|
-
ActionDispatch::Reloader.to_prepare(&hook)
|
165
|
-
end
|
166
|
-
else
|
167
|
-
::ActiveSupport.on_load(:active_record) do
|
168
|
-
ActionDispatch::Reloader.to_cleanup(&hook)
|
158
|
+
::ActiveSupport.on_load(:active_record) do
|
159
|
+
ActionDispatch::Reloader.to_prepare do
|
160
|
+
require_dependency 'switchman/default_shard'
|
169
161
|
end
|
170
162
|
end
|
171
163
|
end
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|