trailguide 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trail_guide/helper/experiment_proxy.rb +2 -2
- data/lib/trail_guide/version.rb +1 -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: 4fa50e5eb6f5104bd3191ede839bfc35ca31c6b45c4f87dec92d4fe1b52f0bfa
|
4
|
+
data.tar.gz: d35bfae1d46815c27fc05bdcce8d405cbdccf053c2e827f4aca9c504f14aec69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b8fd83c4334a54b7ff6afe5533906acf3075e90c2fa3b1121292374afbe1c30b161a2883c94351c6a9776790bdce25a6300352dc7ac4d8ca8f37b3f79de60f2
|
7
|
+
data.tar.gz: d7bcc56cf6a02a12ec3db7bafa7160299767610406d4ed1036442be6d3671cbeff74f71bf40d59b570c4d623b28c07fcd73cbbd606a660402b4edc93b3977314
|
@@ -141,8 +141,8 @@ module TrailGuide
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def override_variant
|
144
|
-
return unless context.respond_to?(:params, true)
|
145
|
-
params = context.
|
144
|
+
return unless context.respond_to?(:trailguide_params, true) || context.respond_to?(:params, true)
|
145
|
+
params = context.try(:trailguide_params) || context.try(:params)
|
146
146
|
return unless params.key?(TrailGuide.configuration.override_parameter)
|
147
147
|
experiment_params = params[TrailGuide.configuration.override_parameter]
|
148
148
|
return unless experiment_params.key?(experiment.experiment_name.to_s)
|
data/lib/trail_guide/version.rb
CHANGED