Class: Arpa::Services::Actions::Remove::ActionRemover

Inherits:
Object
  • Object
show all
Defined in:
lib/arpa/services/actions/remove/action_remover.rb

Instance Method Summary collapse

Instance Method Details

#remove_nonexistent_actions(params) ⇒ Object



6
7
8
9
10
11
# File 'lib/arpa/services/actions/remove/action_remover.rb', line 6

def remove_nonexistent_actions(params)
  params[:resource].actions.each do |action|
    exist = params[:actions_names].include?(action.name)
    remover_repo.destroy(action) unless exist
  end
end