Class: Plasma::Storage::Record

Inherits:
ApplicationRecord show all
Defined in:
lib/plasma/storage/record.rb

Overview

Model for storing serialized data with automatic JSON parsing

Class Method Summary collapse

Class Method Details

.inherited(subclass) ⇒ Object



8
9
10
11
12
# File 'lib/plasma/storage/record.rb', line 8

def inherited(subclass)
  super
  const_name = subclass.to_s.split("::").last
  Plasma.const_set(const_name, subclass) unless Plasma.const_defined?(const_name)
end