<div v-cloak>
{{ message }}
</div>
[v-cloak] {
display: none;
}
Plugin 'gmarik/Vundle.vim'
Plugin 'Shougo/vimproc.vim'
Plugin 'nanotech/jellybeans.vim'
Plugin 'tpope/vim-sensible'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-sleuth'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-unimpaired'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-dispatch'
Plugin 'bling/vim-airline'
Plugin 'jeetsukumaran/vim-buffergator'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'rking/ag.vim'
Plugin 'vim-scripts/LargeFile'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'airblade/vim-gitgutter'
Plugin 'majutsushi/tagbar'
Plugin 'godlygeek/tabular'
Plugin 'ervandew/supertab'
Plugin 'szw/vim-tags'
Plugin '907th/vim-auto-save'
Plugin 'myusuf3/numbers.vim'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-rbenv'
Plugin 'ngmy/vim-rubocop'
Plugin 'fatih/vim-go'
Plugin 'jimenezrick/vimerl'
Plugin 'vim-erlang/vim-erlang-tags'
'nil' is not an ActiveModel-compatible object.
require_relative 'config/boot'
run Grape::RackBuilder.application
# Defines our constants
RACK_ENV = ENV['RACK_ENV'] || 'development' unless defined?(RACK_ENV)
APP_ROOT = File.expand_path('../..', __FILE__) unless defined?(APP_ROOT)
# Load our dependencies
require 'rubygems' unless defined?(Gem)
require 'bundler/setup'
# Load initializers
Bundler.require(:default, RACK_ENV)
require_relative 'settings'
ApplicationSettings.source File.expand_path('config/application.yml', APP_ROOT)
ApplicationSettings.root = APP_ROOT
require_relative 'database'
Dir[File.join(File.dirname(__FILE__),'initializers/**/*.rb')].each {|file_name| require file_name}
Rabl.configure do |config|
config.include_json_root = false
end
Grape::RackBuilder.setup do
%w{api models lib uploaders models abilities jobs search_indexes}.each do |path|
add_source_path ApplicationSettings.root("#{path}/**/*.rb")
add_source_path ApplicationSettings.root("#{path}/*.rb")
end
use Warden::Manager do |config|
config.strategies.add(:public_access_token, PublicTokenStrategy)
config.default_strategies :public_access_token
config.failure_app = API::Application
config.intercept_401 = false
end
use Rack::Config do |env|
env['api.tilt.root'] = ApplicationSettings.root('rabl')
end
mount 'API::Application', to: '/api'
logger ApplicationSettings.logger(:rackbuilder)
end.boot!