Module: DataMapper::Is::Serialized

Included in:
Model
Defined in:
lib/dm-is-serialized/is/filters.rb,
lib/dm-is-serialized/is/version.rb,
lib/dm-is-serialized/is/serialized.rb

Defined Under Namespace

Modules: ClassMethods, Filters, InstanceMethods

Constant Summary collapse

VERSION =
'0.9.10'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
# File 'lib/dm-is-serialized/is/serialized.rb', line 6

def self.included(base)
end

Instance Method Details

#is_serialized(options = Hash.new) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/dm-is-serialized/is/serialized.rb', line 9

def is_serialized(options = Hash.new)
  # Add class-methods
  extend  DataMapper::Is::Serialized::ClassMethods
  # Add instance-methods
  include DataMapper::Is::Serialized::InstanceMethods
  include DataMapper::Is::Serialized::Filters
  self.serialized_properties = Array.new # otherwise it will be nil and it will cause NoMethodError
end