Sha256: 297c98144665fd9a413dbdd7607757bbf43faef8c4db729f35552a3cb7018de9
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 Bytes
Contents
module Spigot module Mapping class ActiveUser def self.basic {'activeuser' => base} end def self.with_options {'activeuser' => base.merge('spigot' => options)} end def self.non_unique_key {'activeuser' => base.merge('auth_token' => 'token', 'spigot' => non_unique)} end def self.with_invalid_options {'activeuser' => base.merge('spigot' => invalid_options)} end private def self.base {'full_name' => 'name', 'login' => 'username'} end def self.options {'primary_key' => 'username', 'foreign_key' => 'login'} end def self.non_unique {'primary_key' => 'token', 'foreign_key' => 'auth_token'} end def self.invalid_options {'primary_key' => 'nosuchcolumn', 'foreign_key' => 'nosuchkey'} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spigot-0.0.1 | spec/fixtures/mappings/active_user_map.rb |