Class: RescateLifeBoat

Inherits:
Object
  • Object
show all
Defined in:
lib/lifeboat.rb

Class Method Summary collapse

Class Method Details

.perform(action, klass, id) ⇒ Object



41
42
43
44
# File 'lib/lifeboat.rb', line 41

def self.perform(action, klass, id)
  record = klass.camelize.constantize.find(id)
  record.send(action)
end