class method
self.uncountable?
Ruby on Rails 8.0.4
Since v3.0.20Signature
self.uncountable?(record_or_class)
Identifies whether the class name of a record or class is uncountable.
ActiveModel::Naming.uncountable?(Sheep) # => true ActiveModel::Naming.uncountable?(Post) # => false
Parameters
-
record_or_classreq
Source
# File activemodel/lib/active_model/naming.rb, line 299
def self.uncountable?(record_or_class)
model_name_from_record_or_class(record_or_class).uncountable?
end
Defined in activemodel/lib/active_model/naming.rb line 299
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Naming