diff options
author | Steven Yang <yangchenyun@gmail.com> | 2013-06-22 18:24:29 +0800 |
---|---|---|
committer | Steven Yang <yangchenyun@gmail.com> | 2013-06-22 18:24:29 +0800 |
commit | c20b5ca037ee788c547705bf451f88bc5352ce12 (patch) | |
tree | 31257cd8e0f82dbf76d5ad3b7a0d91742ac0dc53 | |
parent | 8867e16a6041e2139696bcb9cfab4642ce55fbdd (diff) | |
download | rails-c20b5ca037ee788c547705bf451f88bc5352ce12.tar.gz rails-c20b5ca037ee788c547705bf451f88bc5352ce12.tar.bz2 rails-c20b5ca037ee788c547705bf451f88bc5352ce12.zip |
add explicit AS dependencies for ActiveModel::Naming
There are two missing ActiveSupport dependencies to use ActiveModel::Name class or ActiveModel::Naming module independently.
Missing dependencies for Module#delegate defined in `active_support/core_ext/module/delegation`, used at [L148](https://github.com/rails/rails/blob/master/activemodel/lib/active_model/naming.rb#L148)
Missing dependencies for Object#blank? defined in `active_support/core_ext/object/blank`, used at [L131](https://github.com/rails/rails/blob/master/activemodel/lib/active_model/naming.rb#L131)
-rw-r--r-- | activemodel/lib/active_model/naming.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb index bc9edf4a56..e0241e761c 100644 --- a/activemodel/lib/active_model/naming.rb +++ b/activemodel/lib/active_model/naming.rb @@ -1,5 +1,7 @@ require 'active_support/core_ext/hash/except' require 'active_support/core_ext/module/introspection' +require 'active_support/core_ext/module/delegation' +require 'active_support/core_ext/object/blank' module ActiveModel class Name |