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

This commit is contained in:
Jeremy Kemper
2009-03-21 03:13:25 -07:00
parent a970e32c91
commit d5e87e3be0

View File

@@ -1,5 +1,4 @@
# encoding: utf-8
require 'singleton'
require 'iconv'
module ActiveSupport
@@ -30,7 +29,9 @@ module ActiveSupport
# 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