Module: Redistry

Extended by:
Redistry
Included in:
Redistry
Defined in:
lib/redistry.rb,
lib/redistry/list.rb,
lib/redistry/version.rb,
lib/redistry/serializers/json.rb,
lib/redistry/list/collection_proxy.rb,
lib/redistry/serializers/activerecord.rb

Defined Under Namespace

Modules: List, Serializers

Constant Summary collapse

VERSION =
"0.1.3"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



9
10
11
# File 'lib/redistry.rb', line 9

def client
  @client
end

#loaded_frameworksObject (readonly)

Returns the value of attribute loaded_frameworks.



10
11
12
# File 'lib/redistry.rb', line 10

def loaded_frameworks
  @loaded_frameworks
end

Instance Method Details

#setup!Object



17
18
19
# File 'lib/redistry.rb', line 17

def setup!
  @loaded_frameworks = []
end

#setup_active_record!Object



21
22
23
24
25
# File 'lib/redistry.rb', line 21

def setup_active_record!
  require 'redistry/serializers/activerecord'
  ActiveRecord::Base.send(:include, Redistry::List)   
  @loaded_frameworks << :activerecord
end