Class: Redify::Settings
- Inherits:
-
Object
- Object
- Redify::Settings
- Defined in:
- lib/redify/settings.rb
Class Attribute Summary collapse
-
.always_redify_associations ⇒ Object
Returns the value of attribute always_redify_associations.
-
.default_handler ⇒ Object
Returns the value of attribute default_handler.
-
.namespace ⇒ Object
Returns the value of attribute namespace.
-
.raise_redis_errors ⇒ Object
Returns the value of attribute raise_redis_errors.
Class Method Summary collapse
Class Attribute Details
.always_redify_associations ⇒ Object
Returns the value of attribute always_redify_associations.
7 8 9 |
# File 'lib/redify/settings.rb', line 7 def always_redify_associations @always_redify_associations end |
.default_handler ⇒ Object
Returns the value of attribute default_handler.
33 34 35 |
# File 'lib/redify/settings.rb', line 33 def default_handler @default_handler end |
.namespace ⇒ Object
Returns the value of attribute namespace.
8 9 10 |
# File 'lib/redify/settings.rb', line 8 def namespace @namespace end |
.raise_redis_errors ⇒ Object
Returns the value of attribute raise_redis_errors.
7 8 9 |
# File 'lib/redify/settings.rb', line 7 def raise_redis_errors @raise_redis_errors end |
Class Method Details
.set_default_options ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/redify/settings.rb', line 18 def # silently falls back to ActiveRecord when Redis is unavailable raise_redis_errors = false # only redify associations when specified always_redify_associations = false # default namespace namespace = "Redify" end |