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.86 etc/app.d/base.rb
rbbt-util-5.17.85 etc/app.d/base.rb
rbbt-util-5.17.84 etc/app.d/base.rb
rbbt-util-5.17.83 etc/app.d/base.rb
rbbt-util-5.17.82 etc/app.d/base.rb
rbbt-util-5.17.81 etc/app.d/base.rb
rbbt-util-5.17.80 etc/app.d/base.rb
rbbt-util-5.17.78 etc/app.d/base.rb
rbbt-util-5.17.77 etc/app.d/base.rb
rbbt-util-5.17.76 etc/app.d/base.rb
rbbt-util-5.17.75 etc/app.d/base.rb
rbbt-util-5.17.74 etc/app.d/base.rb
rbbt-util-5.17.73 etc/app.d/base.rb
rbbt-util-5.17.72 etc/app.d/base.rb
rbbt-util-5.17.71 etc/app.d/base.rb
rbbt-util-5.17.70 etc/app.d/base.rb
rbbt-util-5.17.69 etc/app.d/base.rb
rbbt-util-5.17.68 etc/app.d/base.rb
rbbt-util-5.17.67 etc/app.d/base.rb
rbbt-util-5.17.66 etc/app.d/base.rb