mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Simple singleton. We don't need the full monty.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user