1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revised naming.rb and lint.rb

This commit is contained in:
Rizwan Reza 2010-06-14 13:44:49 +04:30
parent c5db6450ec
commit de12b5e616
2 changed files with 5 additions and 5 deletions

View file

@ -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 # 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 # including <tt>ActiveModel::Lint::Tests</tt> in your TestCase. It will include

View file

@ -1,7 +1,6 @@
require 'active_support/inflector' require 'active_support/inflector'
module ActiveModel module ActiveModel
class Name < String class Name < String
attr_reader :singular, :plural, :element, :collection, :partial_path attr_reader :singular, :plural, :element, :collection, :partial_path
alias_method :cache_key, :collection alias_method :cache_key, :collection
@ -36,8 +35,9 @@ module ActiveModel
end end
end end
# ActiveModel::Naming is a module that creates a +model_name+ method on your # == Active Model Naming
# object. #
# Creates a +model_name+ method on your object.
# #
# To implement, just extend ActiveModel::Naming in your object: # To implement, just extend ActiveModel::Naming in your object:
# #