Module: DataMapper::NamingConventions::Field::Underscored

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

Overview

module UnderscoredAndPluralizedWithoutModule

Class Method Summary collapse

Class Method Details

.call(property) ⇒ Object



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

def self.call(property)
  Extlib::Inflection.underscore(property.name.to_s)
end