Skip to content

Commit

Permalink
Merge pull request #374 from andreibondarev/remove_legacy_code
Browse files Browse the repository at this point in the history
Remove legacy methods
  • Loading branch information
andrew committed Apr 25, 2016
2 parents a58748c + 4dd2c30 commit a82c771
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/split/encapsulated_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions lib/split/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a82c771

Please sign in to comment.