Module: DataMapper::NamingConventions::Resource::UnderscoredAndPluralized
- Defined in:
- lib/gems/dm-core-0.9.9/lib/dm-core/naming_conventions.rb
Class Method Summary collapse
Class Method Details
.call(name) ⇒ Object
30 31 32 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/naming_conventions.rb', line 30 def self.call(name) Extlib::Inflection.pluralize(Extlib::Inflection.underscore(name)).gsub('/','_') end |