Module: ActiveModel::Naming
- Defined in:
- lib/rails/naming.rb
Class Method Summary collapse
Class Method Details
.plural(record_or_class) ⇒ Object
6 7 8 |
# File 'lib/rails/naming.rb', line 6 def self.plural(record_or_class) model_name_from_record_or_class(record_or_class).plural.gsub('cheddargetter_client_rails_', '') end |
.singular(record_or_class) ⇒ Object
2 3 4 |
# File 'lib/rails/naming.rb', line 2 def self.singular(record_or_class) model_name_from_record_or_class(record_or_class).singular.gsub('cheddargetter_client_rails_', '') end |