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

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

Overview

module UnderscoredAndPluralizedWithoutModule

Class Method Summary collapse

Class Method Details

.call(property) ⇒ Object



76
77
78
# File 'lib/dm-core/support/naming_conventions.rb', line 76

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