Module: Ardm::ActiveRecord::Base

Extended by:
ActiveSupport::Concern
Includes:
Associations, Dirty, Finalize, Hooks, Inheritance, Is, Property, Query, Repository, StorageNames, Validations
Included in:
Record
Defined in:
lib/ardm/active_record/base.rb

Overview

Include all the Ardm modules.

You can use this directly if you want your own abstract base class.

require 'ardm/active_record/base'

class MyRecord < ActiveRecord::Base
  include Ardm::ActiveRecord::Base
end

Or Ardm::ActiveRecord::Base is built in to Ardm::Record

require 'ardm/active_record/record'

class MyRecord < Ardm::Record
  # already included
end

Method Summary

Methods included from Validations

extract_options

Methods included from Repository

#repository

Methods included from Query

order

Methods included from Property

#attribute_get, #attribute_set, extended, #fields, #initialize_ardm_property_defaults, #key, #properties, #reset_key

Methods included from Dirty

#dirty?, #dirty_attributes, #method_missing

Methods included from Associations

#assign_attributes, convert_options

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ardm::ActiveRecord::Dirty