File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 22# Split's helper exposes all kinds of methods we don't want to
33# mix into our model classes.
44#
5- # This module exposes only two methods
6- # - ab_test and
7- # - ab_test_finished
5+ # This module exposes only two methods:
6+ # - ab_test()
7+ # - finished()
88# that can safely be mixed into any class.
99#
1010# Passes the instance of the class that it's mixed into to the
@@ -43,10 +43,6 @@ def ab_test(*arguments)
4343 end
4444 end
4545
46- def ab_test_finished ( *arguments )
47- split_context_shim . finished *arguments
48- end
49-
5046 private
5147
5248 # instantiate and memoize a context shim in case of multiple ab_test* calls
Original file line number Diff line number Diff line change @@ -86,12 +86,6 @@ def split_generically_disabled?
8686 defined? ( params ) && params [ 'SPLIT_DISABLE' ]
8787 end
8888
89- def begin_experiment ( experiment , alternative_name = nil )
90- alternative_name ||= experiment . control . name
91- ab_user [ experiment . key ] = alternative_name
92- alternative_name
93- end
94-
9589 def ab_user
9690 @ab_user ||= User . new ( self )
9791 end
You can’t perform that action at this time.
0 commit comments