Module: TenantCheck::ActiveRecord::RelationExtension
- Includes:
- TenantSafetyCheck
- Defined in:
- lib/tenant_check/active_record/extensions.rb
Instance Method Summary collapse
Methods included from TenantSafetyCheck
safe_preload, safe_preloading, safe_preloading=
Instance Method Details
#pluck(*column_names) ⇒ Object
82 83 84 85 86 87 |
# File 'lib/tenant_check/active_record/extensions.rb', line 82 def pluck(*column_names) return super unless ::TenantCheck.enable_and_started? return super if has_include?(column_names.first) check_tenant_safety('pluck') super end |