Sha256: b5f0b848d83c1f24921a24b8297a7d163e3ff40c170eb0fa15fc41df9446ade6
Contents?: true
Size: 899 Bytes
Versions: 1
Compression:
Stored size: 899 Bytes
Contents
require 'bundler' Bundler.require :default, ENV['NYARA_ENV'] || 'development' configure do set :env, ENV['NYARA_ENV'] || 'development' set :views, 'app/views' set :assets, "app/assets" set :session, :name, '_aaa' ## If you've configured https with nginx: # set :session, :secure, true ## Default session expires when browser closes. ## If you need time-based expiration, 30 minutes for example: # set :session, :expires, 30 * 60 set 'session', 'key', File.read(project_path 'config/session.key') # Routing map '/', 'welcome' # Application loading order set :app_files, %w| app/controllers/application_controller.rb app/{helpers,models,controllers}/**/*.rb | # Environment specific configure at last require_relative env end # Configure Mongoid Mongoid.load!(Nyara.config.project_path('config/database.yml'), Nyara.config.env) Nyara.load_app
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nyara-0.1.pre.1 | lib/nyara/templates/config/application.rb |