Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created March 2, 2015 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtnabe/4469825d23e919745538 to your computer and use it in GitHub Desktop.
Save wtnabe/4469825d23e919745538 to your computer and use it in GitHub Desktop.
Rails' allow_concurrency
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