Module: DataMapper::NamingConventions::Field::UnderscoredAndPluralizedWithoutModule
- Defined in:
- lib/dm-core/naming_conventions.rb
Overview
module UnderscoredAndPluralized
Class Method Summary collapse
Class Method Details
.call(property) ⇒ Object
64 65 66 |
# File 'lib/dm-core/naming_conventions.rb', line 64 def self.call(property) Extlib::Inflection.pluralize(Extlib::Inflection.underscore(Extlib::Inflection.demodulize(property.name.to_s))) end |