Browse files

allow requiring of 'active_model/naming'

Requiring 'active_model/naming' will raise an uninitialized constant
ActiveSupport::Deprecation exception because the module core extension
doesn't require 'active_support/deprecation'. This require cannot be
added to the core extension because of circular dependency issues.
  • Loading branch information...
1 parent f36dcaf commit 75d58fef26bcd52cf5c814466836c4b527a6547c @pwim pwim committed Jan 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/naming.rb
@@ -1,7 +1,7 @@
require 'active_support/inflector'
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/module/introspection'
-require 'active_support/core_ext/module/deprecation'
+require 'active_support/deprecation'
module ActiveModel
class Name < String

0 comments on commit 75d58fe

Please sign in to comment.