Skip to content

Commit

Permalink
Merge pull request #50 from rmm5t/legacy-cleanup
Browse files Browse the repository at this point in the history
Legacy and deprecation cleanup
  • Loading branch information
rmm5t authored Feb 16, 2020
2 parents 0d2040d + 9e221eb commit 7f2a92e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ gemfile:
- Gemfile
- gemfiles/activemodel-3.2.gemfile
- gemfiles/activemodel-4.2.gemfile
- gemfiles/activemodel-5.1.gemfile
- gemfiles/activemodel-5.2.gemfile
- gemfiles/activemodel-6.0.gemfile
- gemfiles/activemodel-master.gemfile
Expand Down
5 changes: 0 additions & 5 deletions gemfiles/activemodel-5.1.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion gemfiles/activemodel-6.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source "https://rubygems.org"

gem "activemodel", ">= 6.0.0.beta1", "< 7.0"
gem "activemodel", "~> 6.0.0"

gemspec path: "../"
7 changes: 0 additions & 7 deletions lib/strip_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ def strip_attributes(options = {})
StripAttributes.strip(record, options)
end
end

# <b>DEPRECATED:</b> Please use <tt>strip_attributes</tt> (non-bang method)
# instead.
def strip_attributes!(options = {})
warn "[DEPRECATION] `strip_attributes!` is deprecated. Please use `strip_attributes` (non-bang method) instead."
strip_attributes(options)
end
end

module StripAttributes
Expand Down

0 comments on commit 7f2a92e

Please sign in to comment.