Created
October 20, 2015 19:46
-
-
Save metaskills/72f36d73e5777481ced8 to your computer and use it in GitHub Desktop.
Rails 4.2 Capybara Transactional Fixtures Example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActiveRecord::Base | |
CONNECTION_LOCK = Mutex.new | |
def self.connection ; CONNECTION_LOCK.synchronize { @@shared_base_connection ||= retrieve_connection } ; end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment