Module: ActiveAttr::Serialization

Extended by:
ActiveSupport::Concern
Includes:
Attributes, MassAssignment, ActiveModel::Serializers::JSON
Included in:
Model
Defined in:
lib/active_attr/serialization.rb

Overview

Serialization is a shortcut for incorporating ActiveModel’s serialization functionality into your model with one include

See the included modules to learn more.

Examples:

Usage

class Person
  include ActiveAttr::Serialization
end

Since:

  • 0.7.0

Method Summary

Methods included from MassAssignment

#assign_attributes, #attributes=, #initialize

Methods included from ChainableInitialization

#initialize

Methods included from Attributes

#==, #attributes, filter_attributes, filter_attributes=, #inspect, #read_attribute, #write_attribute