Sha256: f0e12eff255b23229e282f4af20409afc5c0fff7b308b111803fbdbcbea3ed90

Contents?: true

Size: 852 Bytes

Versions: 2

Compression:

Stored size: 852 Bytes

Contents

$:<<File.dirname(__FILE__) unless $:.include?(File.dirname(__FILE__))
require 'haml'
require 'lolita'

module Lolita
  module Menu
    module Autocomplete
      autoload :LinkSet, "lolita-menu/autocomplete/link_set"
      autoload :FileBuilder, "lolita-menu/autocomplete/file_builder"
      autoload :Collector, "lolita-menu/autocomplete/collector"

      def self.generate_urls
        require Lolita::Menu::Autocomplete::FileBuilder.input_file
      end
    end
    # took this from sitemap_generator
    Urls = (Class.new do
      def method_missing(*args, &block)
        (@link_set ||= reset!).send(*args, &block)
      end

      # Use a new LinkSet instance
      def reset!
        @link_set = Autocomplete::LinkSet.new
      end
    end).new
  end
end


require 'lolita-menu/module'
require 'lolita-menu/engine'
#require 'lolita-menu/railtie'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lolita-menu-0.0.14 lib/lolita-menu.rb
lolita-menu-0.0.13 lib/lolita-menu.rb