Sha256: 71b21f8be8fbc2a10ee534a32aee3e0b05c3551649b644383ceb410f6cc36ee8
Contents?: true
Size: 535 Bytes
Versions: 46
Compression:
Stored size: 535 Bytes
Contents
# For tests only - uses custom 'destroy' implementation which passes a block to # Scimitar::ActiveRecordBackedResourcesController#destroy. # class CustomDestroyMockUsersController < Scimitar::ActiveRecordBackedResourcesController NOT_REALLY_DELETED_USERNAME_INDICATOR = 'not really deleted' def destroy super do | resource | resource.update!(username: NOT_REALLY_DELETED_USERNAME_INDICATOR) end end protected def storage_class MockUser end def storage_scope MockUser.all end end
Version data entries
46 entries across 46 versions & 2 rubygems