Module: DataMapper::NamingConventions::Resource::UnderscoredAndPluralizedWithoutModule

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

Overview

module UnderscoredAndPluralized

Class Method Summary collapse

Class Method Details

.call(name) ⇒ Object



36
37
38
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/naming_conventions.rb', line 36

def self.call(name)
  Extlib::Inflection.pluralize(Extlib::Inflection.underscore(Extlib::Inflection.demodulize(name)))
end