Module: TypeBalancer::Rails
- Defined in:
- lib/type_balancer/rails.rb,
lib/type_balancer/rails/railtie.rb,
lib/type_balancer/rails/version.rb,
lib/type_balancer/rails/cache_adapter.rb,
lib/type_balancer/rails/collection_methods.rb,
lib/type_balancer/rails/active_record_extension.rb
Defined Under Namespace
Modules: ActiveRecordExtension, CollectionMethods Classes: CacheAdapter, Railtie
Constant Summary collapse
- VERSION =
'0.2.8'
Class Attribute Summary collapse
-
.cache_adapter ⇒ Object
Returns the value of attribute cache_adapter.
-
.cache_expiry_seconds ⇒ Object
Returns the value of attribute cache_expiry_seconds.
Class Method Summary collapse
- .clear_cache! ⇒ Object
-
.configure {|_self| ... } ⇒ Object
Rails-style configuration block.
Class Attribute Details
.cache_adapter ⇒ Object
Returns the value of attribute cache_adapter.
14 15 16 |
# File 'lib/type_balancer/rails.rb', line 14 def cache_adapter @cache_adapter end |
.cache_expiry_seconds ⇒ Object
Returns the value of attribute cache_expiry_seconds.
14 15 16 |
# File 'lib/type_balancer/rails.rb', line 14 def cache_expiry_seconds @cache_expiry_seconds end |
Class Method Details
.clear_cache! ⇒ Object
16 17 18 |
# File 'lib/type_balancer/rails.rb', line 16 def clear_cache! cache_adapter&.clear_cache! end |
.configure {|_self| ... } ⇒ Object
Rails-style configuration block
21 22 23 |
# File 'lib/type_balancer/rails.rb', line 21 def configure yield self if block_given? end |