Class: Tributary::App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/tributary/app.rb

Class Method Summary collapse

Class Method Details

.configure(*args, &block) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/tributary/app.rb', line 7

def self.configure *args, &block
  set :cache?,     production?
  set :lang_limit, nil
  set :locale,     nil
  set :plugins,    []
  set :user_prefs, [:lang_limit, :locale]
  super
  set :stream,     cache? ? Tributary::Stream.new : nil
end