提交 58c83d4c 编写于 作者: X Xavier Noria

make sure the inflection rules are loaded when cherry-picking...

make sure the inflection rules are loaded when cherry-picking active_support/core_ext/string/inflections.rb [fixes #6884]
上级 33192cfa
require 'active_support/inflector/inflections'
module ActiveSupport
Inflector.inflections do |inflect|
inflect.plural(/$/, 's')
......
......@@ -2,6 +2,8 @@
module ActiveSupport
module Inflector
extend self
# A singleton instance of this class is yielded by Inflector.inflections, which can then be used to specify additional
# inflection rules.
#
......
# encoding: utf-8
require 'active_support/inflector/inflections'
require 'active_support/inflections'
module ActiveSupport
# The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册