--- !ruby/object:RI::ClassDescription 
attributes: []

class_methods: []

comment: 
- !ruby/struct:SM::Flow::P 
  body: "Use these modules to establish naming conventions. The default is UnderscoredAndPluralized. You assign a naming convention like so:"
- !ruby/struct:SM::Flow::VERB 
  body: "  repository(:default).adapter.resource_naming_convention = NamingConventions::Resource::Underscored\n"
- !ruby/struct:SM::Flow::P 
  body: "You can also easily assign a custom convention with a Proc:"
- !ruby/struct:SM::Flow::VERB 
  body: "  repository(:default).adapter.resource_naming_convention = lambda do |value|\n    'tbl' + value.camelize(true)\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: Or by simply defining your own module in NamingConventions that responds to ::call.
- !ruby/struct:SM::Flow::P 
  body: "NOTE: It's important to set the convention before accessing your models since the resource_names are cached after first accessed. DataMapper.setup(name, uri) returns the Adapter for convenience, so you can use code like this:"
- !ruby/struct:SM::Flow::VERB 
  body: "  adapter = DataMapper.setup(:default, 'mock://localhost/mock')\n  adapter.resource_naming_convention = NamingConventions::Resource::Underscored\n"
constants: []

full_name: DataMapper::NamingConventions
includes: []

instance_methods: []

name: NamingConventions
superclass: 
