Module: GdprAdmin::Helpers::ScopeHelper

Included in:
ApplicationDataPolicy
Defined in:
lib/gdpr_admin/helpers/scope_helper.rb

Instance Method Summary collapse

Instance Method Details

#scope_by_date(scope, field = :updated_at) ⇒ Object



6
7
8
# File 'lib/gdpr_admin/helpers/scope_helper.rb', line 6

def scope_by_date(scope, field = :updated_at)
  scope.where(field => ...request.data_older_than)
end