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.7.8 fixtures/padrino_test/config/database.rb
rabl-0.7.7 fixtures/padrino_test/config/database.rb
rabl-0.7.6 fixtures/padrino_test/config/database.rb
rabl-0.7.5 fixtures/padrino_test/config/database.rb
rabl-0.7.4 fixtures/padrino_test/config/database.rb
rabl-0.7.3 fixtures/padrino_test/config/database.rb
rabl-0.7.2 fixtures/padrino_test/config/database.rb
rabl-0.7.1 fixtures/padrino_test/config/database.rb
rabl-0.7.0 fixtures/padrino_test/config/database.rb
rabl-0.6.14 fixtures/padrino_test/config/database.rb
rabl-0.6.13 fixtures/padrino_test/config/database.rb
rabl-0.6.12 fixtures/padrino_test/config/database.rb
rabl-0.6.11 fixtures/padrino_test/config/database.rb
rabl-0.6.10 fixtures/padrino_test/config/database.rb
rabl-0.6.9 fixtures/padrino_test/config/database.rb
rabl-0.6.8 fixtures/padrino_test/config/database.rb
rabl-0.6.7 fixtures/padrino_test/config/database.rb
rabl-0.6.6 fixtures/padrino_test/config/database.rb
rabl-0.6.5 fixtures/padrino_test/config/database.rb
rabl-0.6.3 fixtures/padrino_test/config/database.rb