Skip to content

Commit 0ce67d3

Browse files
committed
Remove deprecated #acronym_regex method from Inflections
1 parent 6c745b0 commit 0ce67d3

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

actionpack/test/dispatch/request_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,6 @@ class RequestMethod < BaseRequestTest
763763

764764
test "post uneffected by local inflections" do
765765
existing_acronyms = ActiveSupport::Inflector.inflections.acronyms.dup
766-
assert_deprecated { ActiveSupport::Inflector.inflections.acronym_regex.dup }
767766
begin
768767
ActiveSupport::Inflector.inflections do |inflect|
769768
inflect.acronym "POS"

activesupport/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `#acronym_regex` method from `Inflections`.
2+
3+
*Rafael Mendonça França*
4+
15
* Fix `String#safe_constantize` throwing a `LoadError` for incorrectly cased constant references.
26

37
*Keenan Brock*

activesupport/lib/active_support/inflector/inflections.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def self.instance(locale = :en)
6565
@__instance__[locale] ||= new
6666
end
6767

68-
attr_reader :plurals, :singulars, :uncountables, :humans, :acronyms, :acronym_regex
69-
deprecate :acronym_regex
68+
attr_reader :plurals, :singulars, :uncountables, :humans, :acronyms
7069

7170
attr_reader :acronyms_camelize_regex, :acronyms_underscore_regex # :nodoc:
7271

activesupport/test/inflector_test.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,6 @@ def test_underscore_acronym_sequence
224224
assert_equal("json_html_api", ActiveSupport::Inflector.underscore("JSONHTMLAPI"))
225225
end
226226

227-
def test_acronym_regexp_is_deprecated
228-
assert_deprecated do
229-
ActiveSupport::Inflector.inflections.acronym_regex
230-
end
231-
end
232-
233227
def test_underscore
234228
CamelToUnderscore.each do |camel, underscore|
235229
assert_equal(underscore, ActiveSupport::Inflector.underscore(camel))

0 commit comments

Comments
 (0)