mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Inflections#plurals, singulars, uncountables, humans, acronyms are public attr_readers
This commit is contained in:
parent
2b2ed7bc0e
commit
494c0429b7
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ module ActiveSupport
|
|||
# Private, for the test suite.
|
||||
def initialize_dup(orig) # :nodoc:
|
||||
%w(plurals singulars uncountables humans acronyms).each do |scope|
|
||||
instance_variable_set("@#{scope}", orig.send(scope).dup)
|
||||
instance_variable_set("@#{scope}", orig.public_send(scope).dup)
|
||||
end
|
||||
define_acronym_regex_patterns
|
||||
end
|
||||
|
|
|
@ -560,7 +560,7 @@ class InflectorTest < ActiveSupport::TestCase
|
|||
# clear the inflections
|
||||
ActiveSupport::Inflector.inflections do |inflect|
|
||||
inflect.clear(scope)
|
||||
assert_equal [], inflect.send(scope)
|
||||
assert_equal [], inflect.public_send(scope)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue