rails-multitenant
rails-multitenant copied to clipboard
Don't clear caches if we're setting current to the existing value
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