lib/picky/sources/wrappers/base.rb in picky-0.12.1 vs lib/picky/sources/wrappers/base.rb in picky-0.12.2
- old
+ new
@@ -2,15 +2,16 @@
module Wrappers
class Base
- attr_reader :backend
+ attr_reader :backend, :category
- # Wraps a backend
+ # Wraps an indexing category.
#
- def initialize backend
- @backend = backend
+ def initialize category
+ @category = category
+ @backend = category.source
end
# Default is delegation for all methods
#
delegate :harvest, :connect_backend, :take_snapshot, :to => :backend
\ No newline at end of file