Permalink
Browse files

make sure the inflection rules are loaded when cherry-picking active_…

…support/core_ext/string/inflections.rb [fixes #6884]
  • Loading branch information...
1 parent 48601c2 commit 9e0b3fc7cfba43af55377488f991348e2de24515 @fxn fxn committed Jun 29, 2012
@@ -1,3 +1,5 @@
+require 'active_support/inflector/inflections'
+
module ActiveSupport
Inflector.inflections do |inflect|
inflect.plural(/$/, 's')
@@ -1,5 +1,7 @@
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. Examples:
#
@@ -1,4 +1,5 @@
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,

0 comments on commit 9e0b3fc

Please sign in to comment.