From 9a9eea86ec0ee72cdf03670b1c2513dbfa6260cd Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 30 Jan 2013 20:21:27 -0600 Subject: [PATCH] fully disable closet hangers in production --- config/initializers/flex.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/initializers/flex.rb b/config/initializers/flex.rb index 89f52459..31c66a0d 100644 --- a/config/initializers/flex.rb +++ b/config/initializers/flex.rb @@ -3,7 +3,9 @@ Flex::Configuration.configure do |config| # you MUST add your indexed model names here - config.flex_models = %w[ Item ClosetHanger ] + config.flex_models = %w[ Item ] + config.hangers_enabled = !Rails.env.production? + config.flex_models << 'ClosetHanger' if config.hangers_enabled # Add the your result extenders here config.result_extenders |= [ FlexSearchExtender ] @@ -15,9 +17,7 @@ Flex::Configuration.configure do |config| # :anything => 'anything # The custom url of your ElasticSearch server - config.base_uri = 'http://impress.openneo.net:9200' if Rails.env.production? - - config.hangers_enabled = !Rails.env.production? + # config.base_uri = 'http://localhost:9200' # Set it to true to log the debug infos (true by default in development mode) # config.debug = false