Skip to content

Commit a82c771

Browse files
committed
Merge pull request #374 from andreibondarev/remove_legacy_code
Remove legacy methods
2 parents a58748c + 4dd2c30 commit a82c771

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/split/encapsulated_helper.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
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
@@ -44,6 +44,7 @@ def ab_test(*arguments)
4444
end
4545

4646
def ab_test_finished(*arguments)
47+
warn 'DEPRECATION WARNING: ab_test_finished is deprecated and will be removed from Split 1.5.0'
4748
split_context_shim.finished *arguments
4849
end
4950

lib/split/helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def split_generically_disabled?
8787
end
8888

8989
def begin_experiment(experiment, alternative_name = nil)
90+
warn 'DEPRECATION WARNING: begin_experiment is deprecated and will be removed from Split 1.5.0'
9091
alternative_name ||= experiment.control.name
9192
ab_user[experiment.key] = alternative_name
9293
alternative_name

0 commit comments

Comments
 (0)