Module: TrickSerial::Serializer::Rails::V3

Defined in:
lib/trick_serial/serializer/rails.rb

Overview

Rails 3 support.

Defined Under Namespace

Modules: ActiveRecordSessionSerializer, SessionStoreSerializer

Class Method Summary collapse

Class Method Details

.activate!Object



22
23
24
25
26
27
28
29
30
31
# File 'lib/trick_serial/serializer/rails.rb', line 22

def self.activate!
=begin
  if defined? ::ActiveRecord::Session
    ::ActiveRecord::Sesson.send(:include, ActiveRecordSessionSerializer)
  end
=end
  if defined? ::ActionDispatch::Session::MemCacheStore
    ::ActionDispatch::Session::MemCacheStore.send(:include, SessionStoreSerializer)
  end
end