提交 d5e87e3b 编写于 作者: J Jeremy Kemper

Simple singleton. We don't need the full monty.

上级 a970e32c
# encoding: utf-8
require 'singleton'
require 'iconv'
module ActiveSupport
......@@ -30,7 +29,9 @@ module Inflector
# pluralization and singularization rules that is runs. This guarantees that your rules run before any of the rules that may
# already have been loaded.
class Inflections
include Singleton
def self.instance
@__instance__ ||= new
end
attr_reader :plurals, :singulars, :uncountables, :humans
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册