Sha256: 265827ff05b553eaa4b8fd7f01e7c8df0c46ecf61ba200b959f6852096cd06eb

Contents?: true

Size: 183 Bytes

Versions: 15

Compression:

Stored size: 183 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gris-0.1.6 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.1.5 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.1.4 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.1.3 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.1.2 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.1.1 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.1.0 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.0.9 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.0.8 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.0.7 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.0.6 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.0.5 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.0.4 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.0.3 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb
gris-0.0.2 lib/gris/generators/templates/scaffold/config/initializers/active_record.rb