Sha256: e95f6ac67411dae148e298407bac4ed332161cc92313779b60d11c880ebfe181
Contents?: true
Size: 649 Bytes
Versions: 6
Compression:
Stored size: 649 Bytes
Contents
require "rails/railtie" module SearchCraft class Railtie < Rails::Railtie initializer "searchcraft.reloader_hook" do ActiveSupport::Reloader.to_prepare do next unless SearchCraft.database_ready? next unless SearchCraft.config.autorebuild? next unless SearchCraft.dependencies_ready? warn "[#{Rails.env}] running: SearchCraft::Builder.rebuild_any_if_changed!" if SearchCraft.debug? SearchCraft::Builder.rebuild_any_if_changed! rescue => e if SearchCraft.debug? puts "Preparing SearchCraft: #{e.message}" puts e.backtrace end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems