aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/naming.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/lib/active_model/naming.rb')
-rw-r--r--activemodel/lib/active_model/naming.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb
index 8cdd3d2fe8..d6c469feae 100644
--- a/activemodel/lib/active_model/naming.rb
+++ b/activemodel/lib/active_model/naming.rb
@@ -1,7 +1,6 @@
require 'active_support/inflector'
module ActiveModel
-
class Name < String
attr_reader :singular, :plural, :element, :collection, :partial_path
alias_method :cache_key, :collection
@@ -35,9 +34,10 @@ module ActiveModel
I18n.translate(defaults.shift, options)
end
end
-
- # ActiveModel::Naming is a module that creates a +model_name+ method on your
- # object.
+
+ # == Active Model Naming
+ #
+ # Creates a +model_name+ method on your object.
#
# To implement, just extend ActiveModel::Naming in your object:
#