Sha256: 57ec584bc6b30c0d2910101dfcf2e46b9f0ad688637ca77028ae440c1d95d02e

Contents?: true

Size: 895 Bytes

Versions: 145

Compression:

Stored size: 895 Bytes

Contents

#{{{ MODULES AND HELPERS

register Sinatra::RbbtRESTMain
register Sinatra::RbbtRESTEntity
register Sinatra::RbbtRESTFileServer # Remove to prevent serving files
register Sinatra::RbbtRESTKnowledgeBase
helpers Sinatra::RbbtMiscHelpers

#{{{ SESSIONS

use Rack::Session::Cookie, :key => 'rack.session',
  :path => '/',
  :expire_after => 2592000,
  :secret => "#{self.to_s} secret!!"

#{{{ DIRECTORIES
global_var = Rbbt.var.sinatra
local_var = Rbbt.var.sinatra.app[$class_name]

set :cache_dir           , local_var.cache
set :persist_dir         , local_var.cache.persistence
set :persist_options     , {:persist => true, :persist_dir => :persist_dir}
set :file_dir            , local_var.files
set :permalink_dir       , local_var.permalink
set :favourites_dir      , local_var.favourites
set :favourite_lists_dir , local_var.favourite_lists
set :favourite_maps_dir  , local_var.favourite_maps

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
rbbt-util-5.17.45 etc/app.d/base.rb
rbbt-util-5.17.44 etc/app.d/base.rb
rbbt-util-5.17.43 etc/app.d/base.rb
rbbt-util-5.17.42 etc/app.d/base.rb
rbbt-util-5.17.41 etc/app.d/base.rb
rbbt-util-5.17.40 etc/app.d/base.rb
rbbt-util-5.17.39 etc/app.d/base.rb
rbbt-util-5.17.38 etc/app.d/base.rb
rbbt-util-5.17.37 etc/app.d/base.rb
rbbt-util-5.17.35 etc/app.d/base.rb
rbbt-util-5.17.33 etc/app.d/base.rb
rbbt-util-5.17.32 etc/app.d/base.rb
rbbt-util-5.17.31 etc/app.d/base.rb
rbbt-util-5.17.30 etc/app.d/base.rb
rbbt-util-5.17.29 etc/app.d/base.rb
rbbt-util-5.17.28 etc/app.d/base.rb
rbbt-util-5.17.27 etc/app.d/base.rb
rbbt-util-5.17.26 etc/app.d/base.rb
rbbt-util-5.17.25 etc/app.d/base.rb
rbbt-util-5.17.24 etc/app.d/base.rb