diff --git a/lib/split/encapsulated_helper.rb b/lib/split/encapsulated_helper.rb index a8a2a1b7..ac5dd294 100644 --- a/lib/split/encapsulated_helper.rb +++ b/lib/split/encapsulated_helper.rb @@ -2,9 +2,9 @@ # Split's helper exposes all kinds of methods we don't want to # mix into our model classes. # -# This module exposes only two methods -# - ab_test and -# - ab_test_finished +# This module exposes only two methods: +# - ab_test() +# - finished() # that can safely be mixed into any class. # # Passes the instance of the class that it's mixed into to the @@ -44,6 +44,7 @@ def ab_test(*arguments) end def ab_test_finished(*arguments) + warn 'DEPRECATION WARNING: ab_test_finished is deprecated and will be removed from Split 1.5.0' split_context_shim.finished *arguments end diff --git a/lib/split/helper.rb b/lib/split/helper.rb index d2c4d05f..95949427 100644 --- a/lib/split/helper.rb +++ b/lib/split/helper.rb @@ -87,6 +87,7 @@ def split_generically_disabled? end def begin_experiment(experiment, alternative_name = nil) + warn 'DEPRECATION WARNING: begin_experiment is deprecated and will be removed from Split 1.5.0' alternative_name ||= experiment.control.name ab_user[experiment.key] = alternative_name alternative_name