gitlab-experiment 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitlab/experiment/engine.rb +6 -2
- data/lib/gitlab/experiment/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: '08b63f640a90ed463a4b2bf58c2e0b1ef041bbd8f80c2d43bf88960ba9aac2a9'
|
4
|
+
data.tar.gz: 01a8a227c467d097b9dbb9dc9644a1d70012fb3989f2e189e3e63a41e7f39cfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b161004e60bbbdb724aeb685013ce4b787d0ced9526bdd241e52be327adbc3461ea60eb3a279f25b4f89d46ee37825ae1d571501d0196a8505a9ff4eb8b3d214
|
7
|
+
data.tar.gz: 8730e755e09ec85fa88b2721af42ec0919d6534449a91d82bc0d2f6ae0055f70e4ad783d045d20dc09c44496c63465656abfe33d6759e3956a153d793f57a2ab
|
@@ -3,9 +3,13 @@
|
|
3
3
|
module Gitlab
|
4
4
|
class Experiment
|
5
5
|
class Engine < ::Rails::Engine
|
6
|
+
def self.include_dsl
|
7
|
+
ActionController::Base.include(Dsl)
|
8
|
+
ActionController::Base.helper_method(:experiment)
|
9
|
+
end
|
10
|
+
|
6
11
|
config.after_initialize do
|
7
|
-
|
8
|
-
ActionController::Base.include(Dsl) if defined?(ActionController)
|
12
|
+
include_dsl if defined?(ActionController)
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|