Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit d5e87e3be0f7d90fe9ca02161a8ea4918edbc799 1 parent a970e32
@jeremy jeremy authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 activesupport/lib/active_support/inflector.rb
5 activesupport/lib/active_support/inflector.rb
@@ -1,5 +1,4 @@
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.