Class: ActiveRecord::Associations::Association

Inherits:
Object
  • Object
show all
Defined in:
lib/activerecord-multi-tenant/model_extensions.rb

Instance Method Summary collapse

Instance Method Details

#skip_statement_cache?(*scope) ⇒ Boolean

Returns:

  • (Boolean)


130
131
132
133
# File 'lib/activerecord-multi-tenant/model_extensions.rb', line 130

def skip_statement_cache?(*scope)
  return true if klass.respond_to?(:scoped_by_tenant?) && klass.scoped_by_tenant?
  skip_statement_cache_orig(*scope)
end

#skip_statement_cache_origObject



129
# File 'lib/activerecord-multi-tenant/model_extensions.rb', line 129

alias skip_statement_cache_orig skip_statement_cache?