Sha256: d9832e40034cf032242eaad07a24647be03fcda5c28ab0eac304c6a4eaab3471

Contents?: true

Size: 231 Bytes

Versions: 6

Compression:

Stored size: 231 Bytes

Contents

require "yawl/process"

module Yawl
  class Process < Sequel::Model
    def object
      return unless values[:object_id] && object_type

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yawl_rails-0.3.0 lib/yawl/process_active_record.rb
yawl_rails-0.2.2 lib/yawl/process_active_record.rb
yawl_rails-0.2.1 lib/yawl/process_active_record.rb
yawl_rails-0.2.0 lib/yawl/process_active_record.rb
yawl_rails-0.1.1 lib/yawl/process_active_record.rb
yawl_rails-0.1.0 lib/yawl/process_active_record.rb