Created
March 2, 2015 13:35
-
-
Save wtnabe/4469825d23e919745538 to your computer and use it in GitHub Desktop.
Rails' allow_concurrency
This file contains 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
def allow_concurrency? | |
if config.allow_concurrency.nil? | |
config.cache_classes && config.eager_load | |
else | |
config.allow_concurrency | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment