Module: DataMapper::NamingConventions::Field::Yaml

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

Overview

module Underscored

Class Method Summary collapse

Class Method Details

.call(property) ⇒ Object



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

def self.call(property)
  Extlib::Inflection.pluralize(Extlib::Inflection.underscore(property.name.to_s)) + ".yaml"
end