Sha256: c2e40982823821098563f0147bba34ef3275d0f206f7c03518b28f13b66967b3

Contents?: true

Size: 1.27 KB

Versions: 77

Compression:

Stored size: 1.27 KB

Contents

##
# You can use other adapters like:
#
#   ActiveRecord::Base.configurations[:development] = {
#     :adapter   => 'mysql',
#     :encoding  => 'utf8',
#     :reconnect => true,
#     :database  => 'your_database',
#     :pool      => 5,
#     :username  => 'root',
#     :password  => '',
#     :host      => 'localhost',
#     :socket    => '/tmp/mysql.sock'
#   }
#
ActiveRecord::Base.configurations[:development] = {
  :adapter => 'sqlite3',
  :database => ":memory:"
}

ActiveRecord::Base.configurations[:test] = {
  :adapter => 'sqlite3',
  :database => ":memory:"
}

# Setup our logger
ActiveRecord::Base.logger = logger

# Include Active Record class name as root for JSON serialized output.
ActiveRecord::Base.include_root_in_json = true

# Store the full class name (including module namespace) in STI type column.
ActiveRecord::Base.store_full_sti_class = true

# Use ISO 8601 format for JSON serialized times and dates.
ActiveSupport.use_standard_json_time_format = true

# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
# if you're including raw json in an HTML page.
ActiveSupport.escape_html_entities_in_json = false

# Now we can estabilish connection with our db
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[Padrino.env])

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
rabl-0.14.3 fixtures/padrino_test/config/database.rb
rabl-0.14.2 fixtures/padrino_test/config/database.rb
rabl-0.14.1 fixtures/padrino_test/config/database.rb
rabl-0.14.0 fixtures/padrino_test/config/database.rb
rabl-0.13.1 fixtures/padrino_test/config/database.rb
rabl-0.13.0 fixtures/padrino_test/config/database.rb
rabl-0.12.0 fixtures/padrino_test/config/database.rb
rabl-0.11.8 fixtures/padrino_test/config/database.rb
rabl-0.11.7 fixtures/padrino_test/config/database.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rabl-0.11.6/fixtures/padrino_test/config/database.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rabl-0.11.6/fixtures/padrino_test/config/database.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rabl-0.11.6/fixtures/padrino_test/config/database.rb
rabl-0.11.6 fixtures/padrino_test/config/database.rb
rabl-0.11.5 fixtures/padrino_test/config/database.rb
rabl-0.11.4 fixtures/padrino_test/config/database.rb
rabl-0.11.3 fixtures/padrino_test/config/database.rb
rabl-0.11.2 fixtures/padrino_test/config/database.rb
rabl-0.11.1 fixtures/padrino_test/config/database.rb
rabl-0.11.0 fixtures/padrino_test/config/database.rb
rabl-0.10.1 fixtures/padrino_test/config/database.rb