rails-multitenant icon indicating copy to clipboard operation
rails-multitenant copied to clipboard

Don't clear caches if we're setting current to the existing value

Open jturkel opened this issue 5 years ago • 0 comments

This PR updates current= and current_id= to be no-ops if setting current to the existing value which avoids clearing any caches. It also fixes clear_current! to ensure they propagate to dependent objects.

@atsheehan - you're prime

jturkel avatar Dec 10 '19 17:12 jturkel