Sha256: d5aa20508e00eeef05fb1a7f2f3f9190a44339f5db764b4ce00ed4f670ac2760
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
module Spigot module Mapping class User def self.basic {'user' => base} end def self.with_options {'user' => base.merge('spigot' => options)} end def self.with_conditions {'user' => base.merge('spigot' => options.merge(conditions))} end private def self.base {'full_name' => 'name', 'login' => 'username'} end def self.options {'primary_key' => 'username', 'foreign_key' => 'login'} end def self.conditions {'conditions' => 'username, name'} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spigot-0.0.1 | spec/fixtures/mappings/user_map.rb |