Fix problem when Rails.application.config.assets.digest is true