Permalink
Browse files

Revised naming.rb and lint.rb

  • Loading branch information...
rizwanreza committed Jun 14, 2010
1 parent c5db645 commit de12b5e6167b4e2ce3bdee27f3ae9bf84c67cabf
Showing with 5 additions and 5 deletions.
  1. +1 −1 activemodel/lib/active_model/lint.rb
  2. +4 −4 activemodel/lib/active_model/naming.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
@@ -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:
#

0 comments on commit de12b5e

Please sign in to comment.