diff --git a/activemodel/lib/active_model/lint.rb b/activemodel/lib/active_model/lint.rb index 40ba4ac6c350ed6a5588eaa93bb64aa86d539925..f9b2fa16dbc0322e11a7ac5e3de7947e23388a57 100644 --- a/activemodel/lib/active_model/lint.rb +++ b/activemodel/lib/active_model/lint.rb @@ -1,4 +1,4 @@ -# == Active Model Lint Methods +# == Active Model Lint Tests # # You can test whether an object is compliant with the ActiveModel API by # including ActiveModel::Lint::Tests in your TestCase. It will include diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb index 8cdd3d2fe823575a1374bf61e1d9c24112c563cf..d6c469feaeee646aef769514d2598296fe18b863 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 @@ def human(options={}) 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: #