~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activesupport/lib/active_support/cache/drb_store.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
module ActiveSupport
2
 
  module Cache
3
 
    class DRbStore < MemoryStore #:nodoc:
4
 
      attr_reader :address
5
 
 
6
 
      def initialize(address = 'druby://localhost:9192')
7
 
        require 'drb' unless defined?(DRbObject)
8
 
        super()
9
 
        @address = address
10
 
        @data = DRbObject.new(nil, address)
11
 
      end
12
 
    end
13
 
  end
14
 
end