Module: DataMapper::NamingConventions::Field::UnderscoredAndPluralizedWithoutModule

Defined in:
lib/dm-core/support/naming_conventions.rb

Overview

module UnderscoredAndPluralized

Class Method Summary collapse

Class Method Details

.call(property) ⇒ Object



70
71
72
# File 'lib/dm-core/support/naming_conventions.rb', line 70

def self.call(property)
  DataMapper::Inflector.pluralize(DataMapper::Inflector.underscore(DataMapper::Inflector.demodulize(property.name.to_s)))
end