Sha256: d1080b6a46a7e6fd8150d6fca9a8afdd9d42eb9742208aa889f29411ba6c1653

Contents?: true

Size: 678 Bytes

Versions: 4

Compression:

Stored size: 678 Bytes

Contents

module Locomotive::Search
  class Engine < ::Rails::Engine

    initializer "locomotive.search.concerns", before: "locomotive.content_types" do |app|
      require "locomotive/search/content_type_reindexer"
      require "locomotive/search/concerns"

      app.config.autoload_paths += %W(#{config.root}/app/services/locomotive)

      Locomotive::PartialsCell.add_template(:custom_fields_form, "searchable")
      Locomotive::PartialsCell.add_template(:page_form, "searchable")
    end

    initializer "locomotive.search.assets.precompile", group: :all do |app|
      app.config.assets.precompile += ['locomotive/search_bar.css', 'locomotive/search_bar.js']
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.6 lib/locomotive/search/engine.rb
locomotivecms-search-0.3.5 lib/locomotive/search/engine.rb
locomotivecms-search-0.3.4 lib/locomotive/search/engine.rb
locomotivecms-search-0.3.3 lib/locomotive/search/engine.rb