File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ def ab_test(*arguments)
4343 end
4444 end
4545
46+ def ab_test_finished ( *arguments )
47+ warn 'DEPRECATION WARNING: ab_test_finished is deprecated and will be removed from Split 1.5.0'
48+ split_context_shim . finished *arguments
49+ end
50+
4651 private
4752
4853 # instantiate and memoize a context shim in case of multiple ab_test* calls
Original file line number Diff line number Diff line change @@ -86,6 +86,13 @@ def split_generically_disabled?
8686 defined? ( params ) && params [ 'SPLIT_DISABLE' ]
8787 end
8888
89+ def begin_experiment ( experiment , alternative_name = nil )
90+ warn 'DEPRECATION WARNING: begin_experiment is deprecated and will be removed from Split 1.5.0'
91+ alternative_name ||= experiment . control . name
92+ ab_user [ experiment . key ] = alternative_name
93+ alternative_name
94+ end
95+
8996 def ab_user
9097 @ab_user ||= User . new ( self )
9198 end
You can’t perform that action at this time.
0 commit comments