lib/picky/backends/sqlite/basic.rb in picky-4.0.0pre2 vs lib/picky/backends/sqlite/basic.rb in picky-4.0.0pre3
- old
+ new
@@ -12,24 +12,24 @@
def initialize cache_path, options = {}
@cache_path = "#{cache_path}.sqlite3"
@empty = options[:empty]
@initial = options[:initial]
- @self_indexed = options[:self_indexed]
+ @realtime = options[:realtime]
lazily_initialize_client
end
def initial
- @initial && @initial.clone || (@self_indexed ? self.reset : {})
+ @initial && @initial.clone || (@realtime ? self.reset : {})
end
def empty
- @empty && @empty.clone || (@self_indexed ? self.reset.asynchronous : {})
+ @empty && @empty.clone || (@realtime ? self.reset.asynchronous : {})
end
def dump internal
- dump_sqlite internal unless @self_indexed
+ dump_sqlite internal unless @realtime
self
end
def load
self