lib/carload.rb in carload-0.5.2 vs lib/carload.rb in carload-0.5.3
- old
+ new
@@ -27,10 +27,10 @@
end
if not [:carrierwave].include? @@config[:upload_solution]
raise UnsupportedError.new("upload solution #{@@config[:upload_solution]}")
end
@@config[:search_engine] ||= :elasticsearch
- if not [:elasticsearch, :pg_search].include? @@config[:search_engine]
+ if not [:elasticsearch, :pg_search, :none].include? @@config[:search_engine]
raise UnsupportedError.new("search engine #{@@config[:search_engine]}")
end
# Define configuation helpers.
@@config.each do |key, value|
define_singleton_method key do