Sha256: d1b8eac197816a1f0bf810786d7f5a9d1854b81cb165e5aa457d0511e03e773b
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
module CouchRestRails class Document < CouchRest::ExtendedDocument include Validatable def self.use_database(db) db = COUCHDB_CONFIG[:db_prefix] + db.to_s + COUCHDB_CONFIG[:db_suffix] # add prefix and suffix to db self.database = COUCHDB_SERVER.database(db) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
therealadam-couchrest-rails-0.1.1 | lib/couch_rest_rails/document.rb |