srbiv/setler — pull request #1 by carols10cents (2012-12-06 18:11:42+00:00)
Title: Use the class defined that inherits from Setler::Settings since it may h...

...ave customizations on it

Customizations such as changing the database connection with dbcharmer.

Hey, so I think I figured out why setler wasn't working... when ScopedSettings was doing the `where` query, it was just using Setler::Settings' active record connection rather than looking up the class that was defined to inherit from Setler::Settings like ReviewFlags in our project, so the dbcharmer connection in ReviewFlags wasn't being used.

I'm really not sure how to test this though, within setler, without mocking a bunch of stuff and/or setting up a model with a different database connection :-/ Do you have any ideas?