lib/picky/indexing/wrappers/category/location.rb in picky-2.7.0 vs lib/picky/indexing/wrappers/category/location.rb in picky-3.0.0.pre1

- old
+ new

@@ -1,25 +1,29 @@ -module Indexing - module Wrappers - module Category +module Picky - module Location + module Indexing + module Wrappers + module Category - def self.install_on category, grid, precision = 1 - new_source = Sources::Wrappers::Location.new category.source, grid, precision + module Location - category.class_eval do - def tokenizer - @tokenizer ||= Tokenizers::Index.new + def self.install_on category, grid, precision = 1 + new_source = Sources::Wrappers::Location.new category.source, grid, precision + + category.class_eval do + def tokenizer + @tokenizer ||= Tokenizers::Index.new + end + define_method :source do + new_source + end end - define_method :source do - new_source - end + end end end - end end + end \ No newline at end of file