Sha256: 046a87cdb309bdf5024805dbda34d07f9aba3be71f817a4f35d98773c8ee1dd7

Contents?: true

Size: 256 Bytes

Versions: 33

Compression:

Stored size: 256 Bytes

Contents

require 'erb'
db = YAML.load(ERB.new(File.read('./config/database.yml')).result)[Napa.env]
ActiveRecord::Base.establish_connection(db)
ActiveRecord::Base.logger = Napa::Logger.logger if Napa.env.development?
ActiveRecord::Base.include_root_in_json = false

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
napa-0.5.0 lib/napa/cli/templates/new/config/initializers/active_record.rb
napa-0.4.3 lib/napa/cli/templates/new/config/initializers/active_record.rb
napa-0.4.1 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.4.0 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.3.0 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.2.1 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.2.0 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.29 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.28 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.26 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.25 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.24 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.23 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.22 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.21 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.20 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.19 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.18 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.17 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb
napa-0.1.16 lib/napa/generators/templates/scaffold/config/initializers/active_record.rb