Module: Serega::SeregaPlan::ClassMethods
- Included in:
- Serega::SeregaPlan
- Defined in:
- lib/serega/plan.rb
Overview
SeregaPlan class methods
Instance Method Summary collapse
-
#call(opts) ⇒ SeregaPlan
Constructs plan of attributes that should be serialized.
Instance Method Details
#call(opts) ⇒ SeregaPlan
Constructs plan of attributes that should be serialized.
23 24 25 26 27 28 |
# File 'lib/serega/plan.rb', line 23 def call(opts) max_cache_size = serializer_class.config.max_cached_plans_per_serializer_count return new(nil, opts) if max_cache_size.zero? cached_plan_for(opts, max_cache_size) end |