aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorSteven Yang <yangchenyun@gmail.com>2013-06-22 18:24:29 +0800
committerSteven Yang <yangchenyun@gmail.com>2013-06-22 18:24:29 +0800
commitc20b5ca037ee788c547705bf451f88bc5352ce12 (patch)
tree31257cd8e0f82dbf76d5ad3b7a0d91742ac0dc53 /activemodel
parent8867e16a6041e2139696bcb9cfab4642ce55fbdd (diff)
downloadrails-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)
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/naming.rb2
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