lib/adapters/cachetastic_adapters_base.rb in cachetastic-1.2.2 vs lib/adapters/cachetastic_adapters_base.rb in cachetastic-1.2.3
- old
+ new
@@ -52,10 +52,10 @@
# _options attached at the end.
# Examples:
# Cachetastic::Caches::PageCache # => cachetastic_caches_page_cache_options
# MyAwesomeCache # => my_awesome_cache_options
def get_options(name)
- options = app_config.cachetastic_default_options
+ options = (app_config.cachetastic_default_options || {})
options = {"adapter" => "local_memory"}.merge(options)
options = options.merge(app_config.send(name.methodize + "_options") || {})
options
end
end
\ No newline at end of file