Skip to content

Instantly share code, notes, and snippets.

@ivalkeen
Last active April 24, 2016 18:21
Show Gist options
  • Save ivalkeen/a8a96ab35e2f9f41fd00726d1926b965 to your computer and use it in GitHub Desktop.
Save ivalkeen/a8a96ab35e2f9f41fd00726d1926b965 to your computer and use it in GitHub Desktop.
Blog gists
# Use memory store for assets cache in development/test to avoid caching
# to tmp/assets, because it causes hiding of deprecation messages in
# stylesheets, sometimes break parallel_tests and doesn't always refresh
# gem stylesheets in development
config.assets.configure do |env|
if Rails.env.development? || Rails.env.test?
env.cache = ActiveSupport::Cache.lookup_store(:memory_store)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment