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