Class: Yawl::Process

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/yawl/process_active_record.rb

Instance Method Summary collapse

Instance Method Details

#objectObject



5
6
7
8
9
10
# File 'lib/yawl/process_active_record.rb', line 5

def object
  return unless values[:object_id] && object_type

  klass = object_type.constantize
  klass.find(values[:object_id])
end