aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/naming.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-11-26 04:11:17 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-11-26 04:11:17 -0800
commit3ec443086b345cd6f2c1974a6d1ee4dd9f8fdb3e (patch)
tree818284efccf36a46bd3888f99f32aa81a9567f35 /activemodel/lib/active_model/naming.rb
parentbe2a3b0a9319683e25ce06dda55b6d12a0c806ed (diff)
parent22598ee5992fc81d200b3aa99f18248a5259161a (diff)
downloadrails-3ec443086b345cd6f2c1974a6d1ee4dd9f8fdb3e.tar.gz
rails-3ec443086b345cd6f2c1974a6d1ee4dd9f8fdb3e.tar.bz2
rails-3ec443086b345cd6f2c1974a6d1ee4dd9f8fdb3e.zip
Merge pull request #8312 from senny/make_active_model_parts_individually_loadable
make sure that individual parts `ActiveModel` can be required by itself
Diffstat (limited to 'activemodel/lib/active_model/naming.rb')
-rw-r--r--activemodel/lib/active_model/naming.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb
index 264880eecd..6887f6d781 100644
--- a/activemodel/lib/active_model/naming.rb
+++ b/activemodel/lib/active_model/naming.rb
@@ -1,4 +1,3 @@
-require 'active_support/inflector'
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/module/introspection'
@@ -56,8 +55,8 @@ module ActiveModel
# end
#
# BlogPost.model_name <=> 'BlogPost' # => 0
- # BlogPost.model_name <=> 'Blog' # => 1
- # BlogPost.model_name <=> 'BlogPosts' # => -1
+ # BlogPost.model_name <=> 'Blog' # => 1
+ # BlogPost.model_name <=> 'BlogPosts' # => -1
##
# :method: =~