Method: ActiveModel::Naming.uncountable?
- Defined in:
- activemodel/lib/active_model/naming.rb
.uncountable?(record_or_class) ⇒ Boolean
Identifies whether the class name of a record or class is uncountable.
ActiveModel::Naming.uncountable?(Sheep) # => true
ActiveModel::Naming.uncountable?(Post) # => false
299 300 301 |
# 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 |