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.19.35 etc/app.d/base.rb
rbbt-util-5.19.34 etc/app.d/base.rb
rbbt-util-5.19.32 etc/app.d/base.rb
rbbt-util-5.19.31 etc/app.d/base.rb
rbbt-util-5.19.30 etc/app.d/base.rb
rbbt-util-5.19.29 etc/app.d/base.rb
rbbt-util-5.19.28 etc/app.d/base.rb
rbbt-util-5.19.27 etc/app.d/base.rb
rbbt-util-5.19.26 etc/app.d/base.rb
rbbt-util-5.19.25 etc/app.d/base.rb
rbbt-util-5.19.24 etc/app.d/base.rb
rbbt-util-5.19.23 etc/app.d/base.rb
rbbt-util-5.19.22 etc/app.d/base.rb
rbbt-util-5.19.21 etc/app.d/base.rb
rbbt-util-5.19.20 etc/app.d/base.rb
rbbt-util-5.19.19 etc/app.d/base.rb
rbbt-util-5.19.18 etc/app.d/base.rb
rbbt-util-5.19.17 etc/app.d/base.rb
rbbt-util-5.19.16 etc/app.d/base.rb
rbbt-util-5.19.15 etc/app.d/base.rb