Skip to content

Tweak for test environment #1

@futura

Description

@futura

Hi Ryan:

Nice work. The only issue I ran into was during testing (when I don't want the database to be dynamic). So I just added:

def choose_database_from_host
    return if Rails.env == 'test' # <-- RAILS_ENV for Rails 2
     ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions