lib/bento_search.rb in bento_search-1.7.0.beta.1 vs lib/bento_search.rb in bento_search-1.7.0

- old
+ new

@@ -45,8 +45,20 @@ end # Avoid deprecation warnings in ruby 2.3.0 RubyTimeoutClass = (defined?(Timeout::Error) ? Timeout::Error : TimeoutError) + @@defaults = Confstruct::Configuration.new( + error_partial: 'bento_search/search_error', + item_partial: 'bento_search/std_item', + no_results_partial: 'bento_search/no_results', + ajax_loading_partial: 'bento_search/ajax_loading' + ) + def self.set_defaults(hash) + @@defaults.merge!(hash) + end + def self.defaults + @@defaults + end end