Sha256: 212b268dedef544f1384a87d155113f06936944a9d3f5778f57c67375638c163

Contents?: true

Size: 614 Bytes

Versions: 2

Compression:

Stored size: 614 Bytes

Contents

module Locomotive::Search
  class Engine < ::Rails::Engine
    initializer "locomotive.search.concerns", before: "locomotive.content_types" do
      require "locomotive/search/content_type_reindexer"
      require "locomotive/search/concerns"

      Rails.application.config.assets.precompile += ['locomotive/search_bar.css', 'locomotive/search_bar.js']

      Rails.application.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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.2 lib/locomotive/search/engine.rb
locomotivecms-search-0.3.0 lib/locomotive/search/engine.rb