diff options
author | Rizwan Reza <rizwanreza@gmail.com> | 2010-06-14 13:44:49 +0430 |
---|---|---|
committer | Rizwan Reza <rizwanreza@gmail.com> | 2010-06-14 13:44:49 +0430 |
commit | de12b5e6167b4e2ce3bdee27f3ae9bf84c67cabf (patch) | |
tree | d88cb71f6929fca7ae4152b0061a8e7a5d8eac0a /activemodel | |
parent | c5db6450eceff11edcbf41e073109a14d766105e (diff) | |
download | rails-de12b5e6167b4e2ce3bdee27f3ae9bf84c67cabf.tar.gz rails-de12b5e6167b4e2ce3bdee27f3ae9bf84c67cabf.tar.bz2 rails-de12b5e6167b4e2ce3bdee27f3ae9bf84c67cabf.zip |
Revised naming.rb and lint.rb
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/lint.rb | 2 | ||||
-rw-r--r-- | activemodel/lib/active_model/naming.rb | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/activemodel/lib/active_model/lint.rb b/activemodel/lib/active_model/lint.rb index 40ba4ac6c3..f9b2fa16db 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 <tt>ActiveModel::Lint::Tests</tt> in your TestCase. It will include 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: # |