Skip to content
New issue

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

Support using the model's specified connection rather than application default #3

Closed
wants to merge 1 commit into from

Conversation

silasdavis
Copy link
Contributor

In models you may wish to do something like

class Userstats < ActiveRecord::Base
  establish_connection "analysis_#{Rails.env}"

postgresql_cursor should respect the connection specified in the model. This patch implements defaulting to the model's connection.

… from which called rather than the application default, passed along options missed from one method, ignored rubymine/intellij IDE files
@afair
Copy link
Owner

afair commented May 13, 2014

[Manually] Merged. Thanks!

@afair afair closed this May 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants