Module: Goodyear

Defined in:
lib/goodyear.rb,
lib/goodyear/query.rb,
lib/goodyear/railtie.rb,
lib/goodyear/version.rb,
lib/goodyear/enumerable.rb,
lib/goodyear/persistence.rb,
lib/goodyear/query_cache.rb,
lib/goodyear/facet_methods.rb,
lib/goodyear/query_methods.rb,
lib/goodyear/filter_methods.rb,
lib/goodyear/finder_methods.rb,
lib/goodyear/boolean_methods.rb

Defined Under Namespace

Modules: BooleanMethods, ElasticQuery, Enumerable, FacetMethods, FilterMethods, FinderMethods, Persistence, QueryCache, QueryMethods Classes: Query, Railtie

Constant Summary collapse

VERSION =
"0.1.0"
@@force_cache =
false

Class Method Summary collapse

Class Method Details

.cacheObject



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

def self.cache
  Goodyear.force_cache = true
  lm = yield
  Goodyear.force_cache = false
  lm
end