Sha256: bc4f1141c4e87945ef15dbd1ca174ccaa17d702fac0968308a3471cae70d1a8e
Contents?: true
Size: 794 Bytes
Versions: 1
Compression:
Stored size: 794 Bytes
Contents
module Padrino module Generators module Components module Orms module CouchrestGen COUCHREST = (<<-COUCHREST).gsub(/^ {10}/, '') module DatabaseSetup def self.registered(app) app.configure(:development) { set :couchdb, CouchRest.database!('your_dev_db_here') } app.configure(:production) { set :couchdb, CouchRest.database!('your_production_db_here') } app.configure(:test) { set :couchdb, CouchRest.database!('your_test_db_here') } end end COUCHREST def setup_orm require_dependencies 'couchrest' create_file("config/database.rb", COUCHREST) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.1.2 | lib/generators/components/orms/couchrest_gen.rb |