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
- VERSION =
"0.1.2"
Instance Attribute Summary (collapse)
-
- (Object) client
Returns the value of attribute client.
-
- (Object) loaded_frameworks
readonly
Returns the value of attribute loaded_frameworks.
Instance Method Summary (collapse)
Instance Attribute Details
- (Object) client
Returns the value of attribute client
9 10 11 |
# File 'lib/redistry.rb', line 9 def client @client ||= Redis.new end |
- (Object) loaded_frameworks (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
- (Object) setup!
17 18 19 |
# File 'lib/redistry.rb', line 17 def setup! @loaded_frameworks = [] end |
- (Object) setup_active_record!
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 |