We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be awesome to be able to set the abstract_class and establish_connection through an initializer?
abstract_class
establish_connection
Maybe something like
Wordpress.config do |c| c.connection = "wordpress_#{Rails.env}" c.abstract_class = Wordpress::Base end
That way, your database.yml could be setup like
database.yml
development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 wordpress_development: adapter: mysql2 database: wp_blog host: localhost username: admin password: whatever
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be awesome to be able to set the
abstract_class
andestablish_connection
through an initializer?Maybe something like
That way, your
database.yml
could be setup likeThe text was updated successfully, but these errors were encountered: