Class: Arpa::Services::Profiles::Remove::ProfileRemover

Inherits:
Object
  • Object
show all
Defined in:
lib/arpa/services/profiles/remove/profile_remover.rb

Instance Method Summary collapse

Instance Method Details

#remove(entity, disable = false) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/arpa/services/profiles/remove/profile_remover.rb', line 6

def remove(entity, disable = false)
  if disable
    remover_repo.disable(entity)
  else
    remover_repo.destroy(entity)
  end
end