Class: Tire::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/searchbox-tire/configuration.rb

Class Method Summary collapse

Class Method Details

.url(value = nil) ⇒ Object



5
6
7
# File 'lib/searchbox-tire/configuration.rb', line 5

def self.url(value=nil)
  @url = (value ? value.to_s.gsub(%r|/*$|, '') : nil) || @url || ENV['ELASTICSEARCH_URL'] || Searchbox::SEARCHBOX_URL
end