cgriego/active_attr

View on GitHub
lib/active_attr.rb

Summary

Maintainability
A
0 mins
Test Coverage
require "active_attr/railtie" if defined?(Rails)
require "active_support/dependencies/autoload"

# ActiveAttr is a set of modules to enhance Plain Old Ruby Objects (POROs)
#
# These modules give your objects the type of features that are normally found
# in popular Object Relation Mappers (ORMs) like ActiveRecord, Sequel, and
# Mongoid. The goal is to lower the bar for creating easy-to-use Ruby models.
module ActiveAttr
  extend ActiveSupport::Autoload

  autoload :AttributeDefaults
  autoload :AttributeDefinition
  autoload :Attributes
  autoload :BasicModel
  autoload :BlockInitialization
  autoload :ChainableInitialization
  autoload :Error
  autoload :Logger
  autoload :MassAssignment
  autoload :Model
  autoload :QueryAttributes
  autoload :Serialization
  autoload :TypecastedAttributes
  autoload :Typecasting
  autoload :UnknownAttributeError
  autoload :VERSION
end