Module: ActiveAttr::Model

Extended by:
ActiveSupport::Concern
Includes:
AttributeDefaults, BasicModel, BlockInitialization, Logger, MassAssignment, QueryAttributes, Serialization, TypecastedAttributes
Defined in:
lib/active_attr/model.rb

Overview

Model is a shortcut for incorporating the most common model functionality into your model with one include

See the included modules to learn more.

Examples:

Usage

class Person
  include ActiveAttr::Model
end

Since:

  • 0.4.0

Constant Summary

Constants included from Attributes

Attributes::DEPRECATED_OBJECT_METHODS

Method Summary

Methods included from MassAssignment

#assign_attributes, #attributes=, #initialize

Methods included from ChainableInitialization

#initialize

Methods included from Attributes

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

Methods included from TypecastedAttributes

#attribute_before_type_cast

Methods included from Typecasting

#typecast_attribute, #typecaster_for

Methods included from QueryAttributes

#query_attribute

Methods included from AttributeDefaults

#apply_defaults, #attribute_defaults, #initialize

Methods included from Logger

logger, logger=, logger?

Methods included from BlockInitialization

#initialize

Methods included from BasicModel

#persisted?