This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
bin/ | ||
| |
init.rb | ||
| |
lib/ | ||
| |
spec/ |
README.rdoc
Usage
Start the ring server daemon
./script/ring_server
Create a ActiveRecord model that knows how to be distributed
class User < ActiveRecord::Base
include Distributed::Distributable
end
Use this object across the network
user = Distributed::User.find_by_name('Shake')
user.save!
Configuration
Distributed::Config.development # Fakes interaction if true
Distributed::Config.app_name # Applciation Namespace
Distributed::Config.timeout
Tips
To increase the speed of the object loading require the model in an initailizer
require 'user'








