diff options
author | snusnu <gamsnjaga@gmail.com> | 2010-10-29 19:44:45 +0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-30 00:20:31 +0800 |
commit | 973b90877755522772480bce73fcbc17320da2ef (patch) | |
tree | 3009ddea304e29e82b7fdf9ce4331d7eb1369b4d | |
parent | 6a3d6b7f1352efd3e7b931533740252b04850e27 (diff) | |
download | rails-973b90877755522772480bce73fcbc17320da2ef.tar.gz rails-973b90877755522772480bce73fcbc17320da2ef.tar.bz2 rails-973b90877755522772480bce73fcbc17320da2ef.zip |
Added missing AS require to active_model/naming.rb
We saw a failing spec when running the DataMapper
ActiveModel compliance specs for dm-active_model.
ActiveModel::Naming#model_name
relies on the Module#parents method defined in
active_support/core_ext/module/introspection.rb
Adding the appropriate require statement of course
fixed our specs.
-rw-r--r-- | activemodel/lib/active_model/naming.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb index adb71f788f..44aedc8efd 100644 --- a/activemodel/lib/active_model/naming.rb +++ b/activemodel/lib/active_model/naming.rb @@ -1,5 +1,6 @@ require 'active_support/inflector' require 'active_support/core_ext/hash/except' +require 'active_support/core_ext/module/introspection' module ActiveModel class Name < String |