lib/vin_exploder/configuration.rb in vin_exploder-0.3.1 vs lib/vin_exploder/configuration.rb in vin_exploder-0.4.0
- old
+ new
@@ -14,11 +14,11 @@
def cache_store(*args)
if args.empty?
case @cache_store
when Symbol
- VinExploder::Cache.const_get(@cache_store.to_s.split('_').map{|s| s.capitalize }.join)
+ @cache_store = VinExploder::Cache.const_get(@cache_store.to_s.split('_').map{|s| s.capitalize }.join)
else
@cache_store
end
else
@cache_store = args.shift
@@ -28,10 +28,10 @@
def adapter(*args)
if args.empty?
case @adapter
when Symbol
- VinExploder::Decode.const_get(@adapter.to_s.split('_').map{|s| s.capitalize }.join)
+ @adapter = VinExploder::Decode.const_get(@adapter.to_s.split('_').map{|s| s.capitalize }.join)
else
@adapter
end
else
@adapter = args.shift
\ No newline at end of file