Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Distributed Rails Objects
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.gitignore
README.rdoc
Rakefile
init.rb

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'

Something went wrong with that request. Please try again.