Sha256: da8aef310d5270583e4f501d7a396d62183b613161ced209f1ac35ce7cc8ce5c

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

# Mongoid

Mongoid.load!(__dir__ + '/mongoid.yml')


# OmniAuth

enable :sessions
set :sessions, secret: ENV['secret_secret']

use OmniAuth::Builder do
  provider :twitter, ENV['omniauth.twitter'], ENV['omniauth.twitter_x']
  provider :vkontakte, ENV['omniauth.vkontakte'], ENV['omniauth.vkontakte_x']
  provider :facebook, ENV['omniauth.facebook'], ENV['omniauth.facebook_x']
  provider :google_oauth2, ENV['omniauth.google'], ENV['omniauth.google_x']
  provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
end

use Vxod::Middleware


# Db

require 'vxod/db/mongoid'

Vxod::Db.identity = Vxod::Db::Mongoid::Identity
Vxod::Db.user = Vxod::Db::Mongoid::User

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vxod-0.0.2 example/config_app.rb