Sha256: 26a31990fcba838434ca60469599e23be46f7b150034133d1ed9486139b3bdb2

Contents?: true

Size: 328 Bytes

Versions: 5

Compression:

Stored size: 328 Bytes

Contents

module Statemachine
  
  module ContextSupport
    
    attr_accessor :statemachine, :context
    
  end
  
  module ActiveRecordMarshalling
    def marshal_dump
      return self.id
    end
    
    def marshal_load(id)
      @attributes = {}
      @new_record = false
      self.id = id
      self.reload
    end
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
statemachine-2.3.0 rails_plugin/vendor/plugins/statemachine/lib/context_support.rb
statemachine-2.2.0 rails_plugin/vendor/plugins/statemachine/lib/context_support.rb
statemachine-2.1.0 rails_plugin/vendor/plugins/statemachine/lib/context_support.rb
statemachine-2.0.1 rails_plugin/vendor/plugins/statemachine/lib/context_support.rb
statemachine-2.0.0 rails_plugin/vendor/plugins/statemachine/lib/context_support.rb